You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by Dorner Thomas <th...@edmb.debis.com> on 2004/07/16 08:57:51 UTC
Array in HashMap?
> Hi all,
>
> I have only a short question:
>
> It is possible to send a HashMap with Axis (type="apachesoap:Map")
> There are no problems when send Strings in the HashMap.
>
> But isnĀ“t it possible to send an Array in the HashMap?
>
> I get an Exception from server!?
>
> <faultstring>org.xml.sax.SAXException: SimpleDeserializer encountered a
> child element, which is NOT expected, in something it was trying to
> deserialize.</faultstring>
>
>
> The SOAP-Message look good to me:
>
>
> <soapenv:Body>
> <invoke xmlns="service:Smaragd">
> <invokeFunctionName>isActual</invokeFunctionName>
> <invokeParams>
> <item
> xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
> xmlns:ns2="http://xml.apache.org/xml-soap" xmlns="">
> <key>kem</key>
> <value>
> <item xsi:type="soapenc:string">test</item>
> <item xsi:type="soapenc:string">test</item>
> </value>
> </item>
> <item xmlns="">
> <key>versionOBIDs</key>
> <value>
> <item xsi:type="soapenc:string"
> xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">test</item>
> <item xsi:type="soapenc:string"
> xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">tset</item>
> </value>
> </item>
> </invokeParams>
> </invoke>
> </soapenv:Body>
>
>
> Please let me know if it is possible to send an Array in an HashMap???
>
> Thanks Tomi
>
>
>
>
>
>
>
>