You must specify a type mapping that maps the java type HashMap to the
PropertyBagSerializer in your server's deployment descriptor.  That
would look something like

  <isd:mappings>
    <isd:map encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";
             xmlns:xsd="http://www.w3.org/2001/XMLSchema";
qname="xsd:array"
             javaType="java.util.HashMap"

java2XMLClassName="org.apache.soap.encoding.soapenc.PropertyBagSerialize
r"

xml2JavaClassName="org.apache.soap.encoding.soapenc.PropertyBagSerialize
r"/>
  </isd:mappings>

In this example, I have used the xsi:type="xsd:array" attribute that was
in your original example.

Scott Nichol

----- Original Message -----
From: "Guntur N. Sarwohadi" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, October 03, 2002 1:05 PM
Subject: RE: apacheSOAP & NuSOAP


> Hello Scott..
>
> My attempt on creating a Java-SOAP server so it can output the exact
> soap messages created by NuSOAP didn't end up as a successful task..
>
> I think there is something missing with the java-soap server code so
> I'll might as well attach it.. it worked fine, no errors whatsoever,
> just that the output ends up something like:
>
> <?xml version='1.0' encoding='UTF-8'?>
> <SOAP-ENV:Envelope
> xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/";
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
> xmlns:xsd="http://www.w3.org/2001/XMLSchema";>
> <SOAP-ENV:Body>
> <ns1:searchFTUGMResponse xmlns:ns1="urn:searchFTUGM"
> SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";>
> <return xmlns:ns2="http://schemas.xmlsoap.org/soap/encoding/";
> xsi:type="ns2:Array" xmlns:ns3="http://xml.apache.org/xml-soap";
> ns2:arrayType="ns3:HashMap[18]">
> <item xsi:type="ns3:HashMap">
> <item>
> <key xsi:type="xsd:string">tahun1</key>
> <value xsi:type="xsd:string">1989.  </value>
> </item>
> <item>
> <key xsi:type="xsd:string">lokasi</key>
> <value xsi:type="xsd:string">3.  </value>
> </item>
> <item>
> <key xsi:type="xsd:string">nomer</key>
> <value xsi:type="xsd:string"></value>
> </item>
> <item>
> <key xsi:type="xsd:string">edisi</key>
> <value xsi:type="xsd:string"></value>
> </item>
> <item>
> <key xsi:type="xsd:string">penulis</key>
> <value xsi:type="xsd:string">Meyers.  </value>
> </item>
> <item>
> <key xsi:type="xsd:string">judul</key>
> <value xsi:type="xsd:string">Problems for engineering grafics :
Workbook
> 1 / Meyers and Croft.  </value>
> </item>
> <item>
> <key xsi:type="xsd:string">ktkunci</key>
> <value xsi:type="xsd:string"></value>
> </item>
> <item>
> <key xsi:type="xsd:string">eks</key>
> <value xsi:type="xsd:string">5.  </value>
> </item>
> <item>
> <key xsi:type="xsd:string">penerbit</key>
> <value xsi:type="xsd:string">New York : John Wiley &amp;amp; Sons.
> </value>
> </item>
> <item>
> <key xsi:type="xsd:string">seri</key>
> <value xsi:type="xsd:string"></value>
> </item>
> <item>
> <key xsi:type="xsd:string">catatan</key>
> <value xsi:type="xsd:string"></value>
> </item>
> <item>
> <key xsi:type="xsd:string">tahun2</key>
> <value xsi:type="xsd:string"></value>
> </item>
> </item>
> ...
> </return>
> </ns1:searchFTUGMResponse>
>
> </SOAP-ENV:Body>
> </SOAP-ENV:Envelope>
>
> what could possibly be wrong?
>
> Regards,
> Guntur
>


------------------------------------------------------------------------
--------


> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to