This week's book giveaway is in the Other Languages forum.
We're giving away four copies of Functional Reactive Programming and have Stephen Blackheath and Anthony Jones on-line!
See this thread for details.
Win a copy of Functional Reactive Programming this week in the Other Languages 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