Select to view content in your preferred language

Identify Widget get elevation -Question

614
1
05-11-2011 08:55 AM
haThach
Regular Contributor
Hi Everyone,

Can I use identify widget to get elevation data from USGS web service wsdl="http://gisdata.usgs.net/XMLWebServices/TNM_Elevation_service.asmx?WSDL".
If yes, how would I implement the code in IdentifyWidget.mxml?

Declaration tags as shown below:
<fx:Declarations>
  <!-- Place non-visual elements (e.g., services, value objects) here -->
  <s:WebService id="wsrv" wsdl="http://gisdata.usgs.net/XMLWebServices/TNM_Elevation_service.asmx?WSDL">
   <s:operation name="getElevation" result="wsrvresultHandler(event)"/>
  </s:WebService>
</fx:Declarations>
Tags (2)
0 Kudos
1 Reply
DrewDowling
Frequent Contributor
I don't think you can use the identify widget to consume a web service or use one of its operations. You would have to use flex to consume the web service. There is a tool that will automatically generate the classes you need to consume the service and its operations

click Data>Connect to Data/Service

then choose web service.

From there you give the url and the operations you want to use. You will manually have to call the resulting classes from code
0 Kudos