Axis will automatically escape any strings you send, so all the "<"s will turn into "&lt;"s, etc.  If you take a look at test.encoding.TestString, you'll see a number of tests which make sure that we correctly pump variously contorted strings through the system.  If you send "<id>1234</id>" as a String, you'll get "<id>1234</id>" out the other side.
 
--Glen
-----Original Message-----
From: Chris Ruegger [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 20, 2002 7:59 PM
To: [EMAIL PROTECTED]
Subject: XML parameter types?

 
I have a requirement that the parameters we send to/from our SOAP service are themselves XML
"documents" or "strings". Question: Can I send an XML string as a SOAP service parameter,
e.g. suppose I wanted this string to be available as parameter 1 to my web services method:
 
<order>
<id>1234</id>
<name>foo</foo>
</order>
 
 
Would this confuse SOAP with the angle brackets? What XMLType would I use for such
a parameter? I'm having difficulty finding a list of all the legal parameter types, pointers appreciated.
Thanks ahead of time.
 

Reply via email to