http://sampleserver6.arcgisonline.com/arcgis/rest/services/Elevation/WorldElevations/MapServer/exts/ElevationsSOE_NET/ElevationLayers/0/GetElevations
<s:HTTPService showBusyCursor="true" method="POST" id="websvcElevations" url="{_configXML.elevationSOEURL}" resultFormat="text"/>
var sGeoms:String = JSONUtil.encode( [ event.graphic.geometry ] ); var oParams:Object = { "f" : "json", "geometries" : sGeoms } // Send geometries off to SOE to get elevations var atToken:AsyncToken = websvcElevations.send( oParams ); atToken.addResponder( new AsyncResponder( //--- Handle results from elevation profile SOE ---// function( event:ResultEvent, token:Object ):void { try { var oResult:Object = JSONUtil.decode( event.result.toString() ); if ( oResult.hasOwnProperty( "error" ) ) showError( "The server returned an error:\n" + oResult.error.message ); else { ... }
how to call
how to parse
I created a rest SOE using VS2010 C#, and then deployed it on server machine. How to call the Rest SOE in Flex Client? Any example or suggestion? Thanks in advance!
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.