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 "Goerg, Marko" <Ma...@softwareag.com> on 2001/09/26 20:51:48 UTC
Deserializing Array
Hello all SOAP friends out there,
How can I deserialize the array type in the following SOAP Response:
<SOAP-ENC:Array SOAP-ENC:arrayType="foundCars[21]"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/">
<foundCars>
<carGroup type="xsd:string">Premium</carGroup>
<description type="xsd:string">Audi A4 Avant</description>
<type type="xsd:string">4-Doors</type>
<transmission type="xsd:string">Manual</transmission>
<aircondition type="xsd:boolean">true</aircondition>
<price>
<perDay type="xsd:double">210.0</perDay>
<weekend type="xsd:double">610.0</weekend>
<perWeek type="xsd:double">1500.0</perWeek>
<currency type="xsd:string">DEM</currency>
</price>
<code type="xsd:string">PDMR</code>
</foundCars>
...
</SOAP-ENC:Array>
In my client application I have used the SOAP Mapping Registry like
smr = new SOAPMappingRegistry();
String urn = "urn:CarRent";
BeanSerializer beanSer = new BeanSerializer();
smr.mapTypes(Constants.NS_URI_SOAP_ENC,
new QName(urn, "CarRent-findCar-foundCars"),
Car.class, beanSer, beanSer);
Can anyone help me?
Thanks,
Marko Gorg
Application Developer