This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Display SOAP request line by line

 
Siva Masilamani
Ranch Hand
Posts: 385
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Ivan Krizsan
Ranch Hand
Posts: 2198
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 385
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanksfor your help.

I got it
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic