A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
OCM Java EE 6 Enterprise Architect Exam Guide
this week in the
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:
subject: SOAPMessage as String
creating soap requests in java
SOAPMessage through ObjectInputStream
Display SOAP request line by line
Extract SOAP object from HttpServletRequest
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014