File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
SOAPMessage as String
Joined: Feb 04, 2011
Feb 04, 2011 09:53:58
message = messageFactory.createMessage();(line1)
............................some more code.....
//Save the message
return String;}(line 4)
It prints the soap message to the console from line 3. I want the whole soap message as String as my function should return a String on line 4 which should be the whole soap message.
Joined: Oct 04, 2006
Feb 05, 2011 18:13:32
Have you tried to write to, for instance, a
instead of to System.out?
That way you will be able to retrieve the textual representation of the SOAP message.
My free books and tutorials:
I agree. Here's the link:
subject: SOAPMessage as String
SOAPMessage through ObjectInputStream
Display SOAP request line by line
Extract SOAP object from HttpServletRequest
creating soap requests in java
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014