File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Services and the fly likes Display SOAP request line by line Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Display SOAP request line by line" Watch "Display SOAP request line by line" New topic
Author

Display SOAP request line by line

Siva Masilamani
Ranch Hand

Joined: Sep 19, 2008
Posts: 385
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
Ranch Hand

Joined: Oct 04, 2006
Posts: 2198
    
    1
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: 385
Thanksfor your help.

I got it
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Display SOAP request line by line