Hoh can I create a SOAPMessage from a String representation of an entire SOAP message? The reason I’m trying to do this is that I have a SOAP handler for a web service where I capture the SOAP message. I need to preserve the entire SOAP message in the web service to send off to another component. Right now, the web service strips off the SOAP envelope information. So in the handler I made a copy of the SOAP message, base64 encoded it, removed the original Body contents, and added the encoded string. In the web service I’m trying to decode the body (encoded SOAP message) and reconstruct it as a SOAPMessage to send off to another component.
Share
I did this in two steps. First created a DOM Document, and then create the SOAPMessage from the Document.