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 chuck clark <cc...@ziclix.com> on 2000/10/12 22:58:04 UTC

How to Pass XML in a String Parameter?

i am new to SOAP and the IBM/apache implementation
i have everything up and running and it works great...however i have an
object which takes a string as a parameter and that string happens to be
XML
when the XML in that string is well formed there aren't any problems

but if there is a forgotten closing tag or something else causing the
string to be malformed then the call fails

is there something special i need to do to signal that a String
Parameter is XML and should be ignored by the SOAP framework?  basically
something showing that this is CDATA?

right now i'm creating the parameter like this:
params.addElement( new Parameter( "myxml", String.class, _myxml, null )
);

i'm guessing i must have to pass in some sort of encoding for that
fourth parameter instead of null?  if so i'm not sure what it would be

has anyone else had a need to do this and succeeded?
any help would be greatly appreciated

cheers
chuck