I'm trying to write some code using low level java classes to generate
SOAP requests. I have a SOAPmessage I have created, and can get at the
body part, however, I need to add an XML document to the body. The
trick is that the it is in the form of a formatted String object, not a
DOM type class. (I'm reading existing XML from a file). If I try to
add the text of the document to the body, it escapes all the < and >
symbols.
Is there any simple way to add a bunch of existing XML to the body of a
SOAP message?
Thanks!
--
Chuck Tryon
EricF - 31 Dec 2004 04:45 GMT
>I'm trying to write some code using low level java classes to generate
>SOAP requests. I have a SOAPmessage I have created, and can get at the
[quoted text clipped - 8 lines]
>
>Thanks!
Can you add it as cdata?
http://www.w3schools.com/xml/xml_cdata.asp