[xgws-user] Support to response arrays?

Andre P. andre.p.piazza_at_gmail.com
Thu, 9 Nov 2006 16:41:58 -0200


------=_Part_54904_17123372.1163097718127
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Hello list!

May I, using XSUL (the Dynamic Invoker), handle SOAP responses that come
into arrays, for example:

######## The WSDL (snippet):

<s:complexType name="ZipQuery">
 <s:all>
   <s:element name="ZipCode" type="s:int" />
 </s:all>
</s:complexType>

<s:complexType name="ZipQueryResult">
 <s:all>
   <s:element name="ZipCode" type="s:int" />
   <s:element name="Settlement" type="s:string" />
   <s:element name="SettlementType" type="s:string" />
   <s:element name="City" type="s:string" />
   <s:element name="State" type="s:string" />
 </s:all>
</s:complexType>

######## The response comes like these:

<responseZipCode>
  <place n1:type="SOAP-ENC:Array" n2:arrayType="ns1:ZipQueryResult[0]"
xmlns:n1="http://www.w3.org/2001/XMLSchema-instance" xmlns:n2="
http://schemas.xmlsoap.org/soap/encoding/" />
</responseZipCode>


The big question is, how can I get/extract the ZipCode, Settlement, City,
etc from the response array (ZipQueryResult[0]).


Thanks in advance for any help!

Best regards,

Andre

------=_Part_54904_17123372.1163097718127
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Hello list!<br><br>May I, using XSUL (the Dynamic Invoker), handle SOAP responses that come into arrays, for example:<br><br>######## The WSDL (snippet):<br><br>&lt;s:complexType name=&quot;ZipQuery&quot;&gt;<br>&nbsp;&lt;s:all&gt;
<br>&nbsp;&nbsp; &lt;s:element name=&quot;ZipCode&quot; type=&quot;s:int&quot; /&gt; <br>&nbsp;&lt;/s:all&gt;<br>&lt;/s:complexType&gt;<br><br>&lt;s:complexType name=&quot;ZipQueryResult&quot;&gt;<br>&nbsp;&lt;s:all&gt;<br>&nbsp;&nbsp; &lt;s:element name=&quot;ZipCode&quot; type=&quot;s:int&quot; /&gt; 
<br>&nbsp;&nbsp; &lt;s:element name=&quot;Settlement&quot; type=&quot;s:string&quot; /&gt; <br>&nbsp;&nbsp; &lt;s:element name=&quot;SettlementType&quot; type=&quot;s:string&quot; /&gt; <br>&nbsp;&nbsp; &lt;s:element name=&quot;City&quot; type=&quot;s:string&quot; /&gt; 
<br>&nbsp;&nbsp; &lt;s:element name=&quot;State&quot; type=&quot;s:string&quot; /&gt; <br>&nbsp;&lt;/s:all&gt;<br>&lt;/s:complexType&gt;<br><br>######## The response comes like these:<br><br>&lt;responseZipCode&gt;<br>&nbsp; &lt;place n1:type=&quot;SOAP-ENC:Array&quot; n2:arrayType=&quot;ns1:ZipQueryResult[0]&quot; xmlns:n1=&quot;
<a href="http://www.w3.org/2001/XMLSchema-instance">http://www.w3.org/2001/XMLSchema-instance</a>&quot; xmlns:n2=&quot;<a href="http://schemas.xmlsoap.org/soap/encoding/">http://schemas.xmlsoap.org/soap/encoding/</a>&quot; /&gt;
<br>&lt;/responseZipCode&gt;<br><br><br>The big question is, how can I get/extract the ZipCode, Settlement, City, etc from the response array (ZipQueryResult[0]).<br><br><br>Thanks in advance for any help!<br><br>Best regards,
<br><br>Andre<br>

------=_Part_54904_17123372.1163097718127--