| Author |
Display SOAP request line by line
|
Siva Masilamani
Ranch Hand
Joined: Sep 19, 2008
Posts: 377
|
|
Hi
This may be a simple question for most of you.
I want to display the SOAP request generated by using SAAJ api line by line.
After constructing the SOAP message and displaying it to the console using SOAPMessage method writeTo(System.out),it displays the entire request in single line which is very hard to see.
e.g
<orderid><customer name>data</customer name><date>data</date><price>data</price></orderid>
should be displayed as
<orderid>
<customername>data</customername>
....
</orderid>
So if somebody could help me to display the soap request line by line that would be a great help for me.
Thanks in advance.
|
SCJP 6,SCWCD 5,SCBCD 5
Failure is not an option.
|
 |
Ivan Krizsan
Bartender
Joined: Oct 04, 2006
Posts: 2193
|
|
Hi!
Check my reply to a previous post: http://www.coderanch.com/t/457354/Web-Services/java/Apache-Axis-pretty-print
Best wishes!
|
 |
Siva Masilamani
Ranch Hand
Joined: Sep 19, 2008
Posts: 377
|
|
Thanksfor your help.
I got it
|
 |
 |
|
|
subject: Display SOAP request line by line
|
|
|