<?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 Re: consuming .net webservice that returns array of tables in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/consuming-net-webservice-that-returns-array-of/m-p/686084#M15339</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks David. That gets me moving in the right direction. I'll email you when I get stuck again.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;rick&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 03 Dec 2010 15:14:30 GMT</pubDate>
    <dc:creator>RickBaker</dc:creator>
    <dc:date>2010-12-03T15:14:30Z</dc:date>
    <item>
      <title>consuming .net webservice that returns array of tables</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/consuming-net-webservice-that-returns-array-of/m-p/686082#M15337</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm trying to pull data from a .Net webservice when selecting a parcel feature on the map. In Flash Builder 4 I can use the Data Services wizards to generate forms for input and displaying response from webservices that return a single table. Some of my webservices return an array of tables. When running the "Test Operation" in FB4 on that webservice the test results come back fine (see attachment: TestResults.jpg). When I try to use the wizard to generate the input and response forms FB4 is unable to configure the result type, etc, correctly. I get a couple errors in the source code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1067: Implicit coercion of a value of type mx.rpc:CallResponder to an unrelated type Class &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1118: Implicit coercion of a value with static type Object to a possibly unrelated type valueObjects:RXPN_DocumentsForParcelResult.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Since the "test Operation" works, I know it's possible to get the correct data returned, but programmatically I can't figure it out.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Dec 2010 16:16:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/consuming-net-webservice-that-returns-array-of/m-p/686082#M15337</guid>
      <dc:creator>RickBaker</dc:creator>
      <dc:date>2010-12-01T16:16:56Z</dc:date>
    </item>
    <item>
      <title>Re: consuming .net webservice that returns array of tables</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/consuming-net-webservice-that-returns-array-of/m-p/686083#M15338</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I don't use the widzards but write my own code to do this. Depending on you code skill level this process is pretty essay.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Step 1: Create .net web service to return data table.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Step 2: Create flex class for calling web service.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Step 3:&amp;nbsp; Call service&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Step 4: work with results.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have attached some code and below is an example of getting results to an ArrayCollection. If you are returning an array of tables you may have to loop through the results and assign each table to an array collection. The key is to understand the how the results are being returned and this depends on the .net code. in this case below my .net code returns a data table. If you need more help my email is &lt;/SPAN&gt;&lt;A href="mailto:david.galluzzo@dhs.gov"&gt;david.galluzzo@dhs.gov&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;//gets Spot Incidents in system and stores inside array&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;public function gotSpotIncidents(e:ResultEvent):void{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(e.result.Tables.Table.Rows.length &amp;gt; 0){&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; var table:* = e.result.Tables.Table.Rows;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; spotIncidentsArr = new ArrayCollection();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; spotIncidentsArr = table; // Assign Results to branches Array &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;CursorManager.removeBusyCursor();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Dec 2010 14:17:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/consuming-net-webservice-that-returns-array-of/m-p/686083#M15338</guid>
      <dc:creator>DavidGalluzzo</dc:creator>
      <dc:date>2010-12-02T14:17:47Z</dc:date>
    </item>
    <item>
      <title>Re: consuming .net webservice that returns array of tables</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/consuming-net-webservice-that-returns-array-of/m-p/686084#M15339</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks David. That gets me moving in the right direction. I'll email you when I get stuck again.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;rick&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Dec 2010 15:14:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/consuming-net-webservice-that-returns-array-of/m-p/686084#M15339</guid>
      <dc:creator>RickBaker</dc:creator>
      <dc:date>2010-12-03T15:14:30Z</dc:date>
    </item>
  </channel>
</rss>

