<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How to parse the result in Flex after calling a SOE? in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/how-to-parse-the-result-in-flex-after-calling-a/m-p/653597#M14590</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;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!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Dec 2012 23:21:50 GMT</pubDate>
    <dc:creator>XintaoLiu</dc:creator>
    <dc:date>2012-12-26T23:21:50Z</dc:date>
    <item>
      <title>How to parse the result in Flex after calling a SOE?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/how-to-parse-the-result-in-flex-after-calling-a/m-p/653597#M14590</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;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!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Dec 2012 23:21:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/how-to-parse-the-result-in-flex-after-calling-a/m-p/653597#M14590</guid>
      <dc:creator>XintaoLiu</dc:creator>
      <dc:date>2012-12-26T23:21:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to parse the result in Flex after calling a SOE?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/how-to-parse-the-result-in-flex-after-calling-a/m-p/653598#M14591</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;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!&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Or may I ask that how to call Rest SOEs in Flex and parse the result Json to get valid values?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Dec 2012 16:48:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/how-to-parse-the-result-in-flex-after-calling-a/m-p/653598#M14591</guid>
      <dc:creator>XintaoLiu</dc:creator>
      <dc:date>2012-12-27T16:48:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to work in Flex with SOE?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/how-to-parse-the-result-in-flex-after-calling-a/m-p/653599#M14592</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;how to call&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;ESRI sample &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/flex-api/samples/01nq/01nq00000075000000.htm"&gt;"SOE GetElevations"&lt;/A&gt;&lt;SPAN&gt; demonstrates how to create own Task based on BaseTask. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;All the Flex API samples are also included in the &lt;/SPAN&gt;&lt;A href="http://links.esri.com/flex-api/latest-download"&gt;Flex API Library download&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;how to parse&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;It depends on your server object extension response. What is your SOE response format? JSON, xml, amf ?..&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;For example: &lt;/SPAN&gt;&lt;A href="http://sampleserver4.arcgisonline.com/ArcGIS/rest/services/Elevation/ESRI_Elevation_World/MapServer/exts/ElevationsSOE/ElevationLayers/1/GetElevations"&gt;this &lt;/A&gt;&lt;SPAN&gt;service SOE response format is JSON - must be pasrsed as JSON.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jan 2013 07:05:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/how-to-parse-the-result-in-flex-after-calling-a/m-p/653599#M14592</guid>
      <dc:creator>IvanBespalov</dc:creator>
      <dc:date>2013-01-08T07:05:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to parse the result in Flex after calling a SOE?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/how-to-parse-the-result-in-flex-after-calling-a/m-p/653600#M14593</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can also use the JSONTask if you don't want to create your own task:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/help/flex-api/apiref/com/esri/ags/tasks/JSONTask.html"&gt;http://resources.arcgis.com/en/help/flex-api/apiref/com/esri/ags/tasks/JSONTask.html&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jan 2013 17:22:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/how-to-parse-the-result-in-flex-after-calling-a/m-p/653600#M14593</guid>
      <dc:creator>DasaPaddock</dc:creator>
      <dc:date>2013-01-08T17:22:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to parse the result in Flex after calling a SOE?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/how-to-parse-the-result-in-flex-after-calling-a/m-p/653601#M14594</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Xinato,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here's a FlexViewer widget I wrote; it calls an elevation data SOE through REST and then handles the resulting JSON.&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://www.arcgis.com/home/item.html?id=b9d247c297f144459854751740f59f68" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.arcgis.com/home/item.html?id=b9d247c297f144459854751740f59f68&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The SOE URL is here:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;http://sampleserver6.arcgisonline.com/arcgis/rest/services/Elevation/WorldElevations/MapServer/exts/ElevationsSOE_NET/ElevationLayers/0/GetElevations&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I use a Flex HTTPService object to make the call. I do it this way because I wrote the code a while ago. You might also use a BaseTask to do the same thing.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Here's the MXML declaration:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;lt;s:HTTPService showBusyCursor="true" method="POST" id="websvcElevations" url="{_configXML.elevationSOEURL}" resultFormat="text"/&amp;gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And here's a bit of the code that makes the call and handles the response:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;var sGeoms:String = JSONUtil.encode( [ event.graphic.geometry ] );
var oParams:Object = {
 "f"&amp;nbsp;&amp;nbsp;&amp;nbsp; : "json",
 "geometries" : sGeoms
}
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
// 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 {
&amp;nbsp; try {
&amp;nbsp;&amp;nbsp; var oResult:Object = JSONUtil.decode( event.result.toString() );
&amp;nbsp;&amp;nbsp; if ( oResult.hasOwnProperty( "error" ) )
&amp;nbsp;&amp;nbsp;&amp;nbsp; showError( "The server returned an error:\n" + oResult.error.message );
&amp;nbsp;&amp;nbsp; else { ... }
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I hope that helps.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 03:41:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/how-to-parse-the-result-in-flex-after-calling-a/m-p/653601#M14594</guid>
      <dc:creator>MarkDeaton</dc:creator>
      <dc:date>2021-12-12T03:41:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to parse the result in Flex after calling a SOE?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/how-to-parse-the-result-in-flex-after-calling-a/m-p/653602#M14595</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you all for your replies! I have solved it, but just come back to look the posts.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 21 Apr 2013 16:17:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/how-to-parse-the-result-in-flex-after-calling-a/m-p/653602#M14595</guid>
      <dc:creator>XintaoLiu</dc:creator>
      <dc:date>2013-04-21T16:17:54Z</dc:date>
    </item>
  </channel>
</rss>

