Hi
For those interested I found a way round my problem. Using the
source for SOAP 2.2 I made some modifications to
org.apache.soap.encoding.soapenc.HashtableSerializer. I've change the
implementation of marshall and forced it to use NS_URI_SOAP_ENC for
serializing each element. See attached HashtableSerializer.java.
Regards
Anthony Dodd
-----Original Message-----
From: Anthony Dodd [mailto:[EMAIL PROTECTED]]
Sent: 05 July 2001 12:01
To: Soap-User (E-mail)
Subject: Mixing SOAP and LITERAL XML encoding styles
Hi
Using the sample code in the FAQ. I wrote a method which accepts a
java.util.Hashtable as a parameter and returns a DOM element. See attached
code snippet. When I try to call this method, I get the following error "No
Serializer found to serialize a 'java.lang.String' using encoding style
'http://xml.apache.org/xml-soap/literalxml'.". it appears that SOAP is
trying to use the encoding style set for the call as opposed to the encoding
style set for the parameter to serialize the Hashtable. Is this the way its
supposed to work, if so is there a way I can get around this problem.
Regards
Anthony Dodd
<<sample code.txt>>
HashtableSerializer.java