Home > Archive > Java Help > December 2004 > Adding XML to a SOAPBody
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Adding XML to a SOAPBody
|
|
| Charles Tryon 2004-12-30, 8:57 pm |
| 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
| |
|
| In article <aNZAd.81258$Uf.31614@twister.nyroc.rr.com>, Charles Tryon <chucktryon@yahoo.com> wrote:
>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!
Can you add it as cdata?
http://www.w3schools.com/xml/xml_cdata.asp
|
|
|
|
|