[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><s:complexType name="ZipQuery"><br> <s:all>
<br> <s:element name="ZipCode" type="s:int" /> <br> </s:all><br></s:complexType><br><br><s:complexType name="ZipQueryResult"><br> <s:all><br> <s:element name="ZipCode" type="s:int" />
<br> <s:element name="Settlement" type="s:string" /> <br> <s:element name="SettlementType" type="s:string" /> <br> <s:element name="City" type="s:string" />
<br> <s:element name="State" type="s:string" /> <br> </s:all><br></s:complexType><br><br>######## The response comes like these:<br><br><responseZipCode><br> <place n1:type="SOAP-ENC:Array" n2:arrayType="ns1:ZipQueryResult[0]" xmlns:n1="
<a href="http://www.w3.org/2001/XMLSchema-instance">http://www.w3.org/2001/XMLSchema-instance</a>" xmlns:n2="<a href="http://schemas.xmlsoap.org/soap/encoding/">http://schemas.xmlsoap.org/soap/encoding/</a>" />
<br></responseZipCode><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--