You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-user@ws.apache.org by Kevin Christmas <ke...@DCHHealth.com> on 2000/10/20 00:47:40 UTC

Vector

Does someone have an example, snip it of code, or advice to encode a
java.util.Vector so it doesn't come back as a String array?  I'm just
loading strings in the vector right now.
Here is what I get back:
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/1999/XMLSchema">
<SOAP-ENV:Body>
<ns1:getVecResponse xmlns:ns1="urn:VectorGetter"
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<return xmlns:ns2="http://schemas.xmlsoap.org/soap/encoding/"
xsi:type="ns2:Array" ns2:arrayType="xsd:ur-type[5]">
<item xsi:type="xsd:string">1 String</item>
<item xsi:type="xsd:string">2 String</item>
<item xsi:type="xsd:string">3 String</item>
<item xsi:type="xsd:string">4 String</item>
<item xsi:type="xsd:string">5 String</item>
</return>
</ns1:getVecResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

Thanks
Kevin