I have a
SOAP message I coding by hand to mimic the response a server should send me if I sent a SOAP message and got a response back (since I can't atm get a response I just added what I thought I would get back to a .xml file and read it in)
All seemed to work fine until I wanted to get a value out of the SOAP message...
This is my message dumped into a file:
Using the following:
I managed to get the message and use message.writeTo(System.out) to print out what I actually expected to see:
So there I thought I had solved the conversion of a) file input to soap message and what follows, b)
string conversion to soap message...
Alas, it was not to be... The next thing I wanted to do was to try and retrieve the success_or_failure value and use it for something, to do that I should need the SOAPBody so away I went again, only to be granted sight of the following exception:
com.sun.xml.messaging.saaj.SOAPExceptionImpl: Unable to create envelope from given source: Since the message printed okay using message.writeTo(System.out) I was somewhat mullified...
Any ideas greatly appreciated!