Note that there are some explanatory texts on larger screens.

plurals
  1. POFlex/AS3 incompletely decoding WSDL XML on one particular operation. How on earth do I remedy this?
    primarykey
    data
    text
    <p>I am currently consuming a WSDL in Flex, that is on the back-end served by .NET. ALL of the operations seem to work fine, except one, whose result object is not being properly parsed by AS3 for some odd reason. I have inspected the response XML in Fiddler/Charles and the data is there, but in NOT in the result in the Flex variable inspector. The culprit is the sub-tag 'DD' (result.data.result.Tables.DD.Columns) I only see one of them and it's 17 sub-tag children, but they are listed as array indices 0-17 with a values of "RID", "NP", "LI" and so on. But those tags have NO values. I think I'm not getting any of the <code>&lt;DD</code>> tags.</p> <p>Here is my result handler:</p> <pre><code>public function getLocationStats_result( result : Object ) : void { trace("Location Stats Received"); var locations : ArrayCollection = result.data.result.Tables.DD.Columns; sublocationCheck(); for(var i: int =0; i &lt; locations.length; i++) { //Setting up the info Dictionary, key= location name, value = LocationInfo obj. model.pinLocations.sublocations.getItemAt(0).info[locations[i]]= new LocationInfo(); } }; </code></pre> <p>And here is the relevant portion of the response from the WSDL:</p> <pre><code>&lt;GetLocationStatsResponse xmlns="http://tempuri.org/"&gt; &lt;GetLocationStatsResult&gt; &lt;xs:schema id="Rpt_DSDashBoardFeed" targetNamespace="http://tempuri.org/Rpt_DSDashBoardFeed.xsd" xmlns:mstns="http://tempuri.org/Rpt_DSDashBoardFeed.xsd" xmlns="http://tempuri.org/Rpt_DSDashBoardFeed.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" attributeFormDefault="qualified" elementFormDefault="qualified"&gt; &lt;xs:element name="Rpt_DSDashBoardFeed" msdata:IsDataSet="true"&gt; &lt;xs:complexType&gt; &lt;xs:choice maxOccurs="unbounded"&gt; &lt;xs:element name="DD"&gt; &lt;xs:complexType&gt; &lt;xs:sequence&gt; &lt;xs:element name="RID" type="xs:decimal" minOccurs="0" /&gt; &lt;xs:element name="LP" type="xs:long" minOccurs="0" /&gt; &lt;xs:element name="NI" type="xs:long" minOccurs="0" /&gt; &lt;xs:element name="ENC" type="xs:long" minOccurs="0" /&gt; &lt;xs:element name="IMIN" type="xs:dateTime" minOccurs="0" /&gt; &lt;xs:element name="IMAX" type="xs:dateTime" minOccurs="0" /&gt; &lt;xs:element name="CC" type="xs:string" minOccurs="0" /&gt; &lt;xs:element name="LC" type="xs:string" minOccurs="0" /&gt; &lt;xs:element name="SLC" type="xs:string" minOccurs="0" /&gt; &lt;xs:element name="PC" type="xs:string" minOccurs="0" /&gt; &lt;xs:element name="CN" type="xs:string" minOccurs="0" /&gt; &lt;xs:element name="LN" type="xs:string" minOccurs="0" /&gt; &lt;xs:element name="SLN" type="xs:string" minOccurs="0" /&gt; &lt;xs:element name="PN" type="xs:string" minOccurs="0" /&gt; &lt;xs:element name="HW" type="xs:decimal" minOccurs="0" /&gt; &lt;xs:element name="TH" type="xs:decimal" minOccurs="0" /&gt; &lt;xs:element name="TE" type="xs:decimal" minOccurs="0" /&gt; &lt;/xs:sequence&gt; &lt;/xs:complexType&gt; &lt;/xs:element&gt; &lt;/xs:choice&gt; &lt;/xs:complexType&gt; &lt;/xs:element&gt; &lt;/xs:schema&gt; &lt;diffgr:diffgram xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:diffgr="urn:schemas-microsoft-com:xml-diffgram-v1"&gt; &lt;Rpt_DSDashBoardFeed xmlns="http://tempuri.org/Rpt_DSDashBoardFeed.xsd"&gt; &lt;DD diffgr:id="DD1" msdata:rowOrder="0" diffgr:hasChanges="inserted"&gt; &lt;RID&gt;21389325&lt;/RID&gt; &lt;LP&gt;277467563&lt;/LP&gt; &lt;NI&gt;1&lt;/NI&gt; &lt;ENC&gt;1&lt;/ENC&gt; &lt;IMIN&gt;2010-02-16T09:53:54.0000000-05:00&lt;/IMIN&gt; &lt;IMAX&gt;2010-02-16T09:53:54.0000000-05:00&lt;/IMAX&gt; &lt;CC&gt;WDWPR&lt;/CC&gt; &lt;LC&gt;MK&lt;/LC&gt; &lt;SLC&gt;ENTR&lt;/SLC&gt; &lt;PC&gt;397850&lt;/PC&gt; &lt;CN&gt;Some String&lt;/CN&gt; &lt;LN&gt;Another String&lt;/LN&gt; &lt;SLN&gt;Location&lt;/SLN&gt; &lt;PN&gt;Eastman, Suzy&lt;/PN&gt; &lt;HW&gt;0&lt;/HW&gt; &lt;TH&gt;11&lt;/TH&gt; &lt;TE&gt;30&lt;/TE&gt; &lt;/DD&gt; &lt;DD diffgr:id="DD2" msdata:rowOrder="1" diffgr:hasChanges="inserted"&gt; &lt;RID&gt;21389326&lt;/RID&gt; &lt;LP&gt;277467508&lt;/LP&gt; &lt;NI&gt;8&lt;/NI&gt; &lt;ENC&gt;2&lt;/ENC&gt; &lt;IMIN&gt;2010-02-16T09:53:42.0000000-05:00&lt;/IMIN&gt; &lt;IMAX&gt;2010-02-16T09:55:16.0000000-05:00&lt;/IMAX&gt; &lt;CC&gt;WDWPR&lt;/CC&gt; &lt;LC&gt;MK&lt;/LC&gt; &lt;SLC&gt;FMAIN&lt;/SLC&gt; &lt;PC&gt;359800&lt;/PC&gt; &lt;CN&gt;Some String&lt;/CN&gt; &lt;LN&gt;Yet ANOTHER string&lt;/LN&gt; &lt;SLN&gt;Some Info&lt;/SLN&gt; &lt;PN&gt;Mays, Willie&lt;/PN&gt; &lt;HW&gt;0&lt;/HW&gt; &lt;TH&gt;11&lt;/TH&gt; &lt;TE&gt;42&lt;/TE&gt; &lt;/DD&gt; </code></pre> <p>(Truncated, more DD tags follow, plus close tags.) All I see is the initial tag with the Tag names, I don't see in my debugger in the result object any of the actual DD tags or how to access them. How on earth do I reference them? I've gone crazy Googling around and searching stackoverflow for an answer, and now I am stuck. Thanks in advance for any help!</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload