• Post Reply Bookmark Topic Watch Topic
  • New Topic

There has to be an easy way...

 
Andrew Sweeney
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Okay folks,
All I want to do is to print the SOAP envelope out to a file. One call, one response. The catch is that the Call object doesn't seem geared to do this. I'm sure that there is something simple I'm missing, but has anyone accomplished this before? (I need this to go into some documentation about what we expect a client to send us)
Thanks,
Andrew
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What I did to get full text for the book was write a utility that can trap both the HTTP request and response text. It is called UtilSnoop and can be found at:
http://www.lanw.com/books/javasoap/
The cool thing is that you can create and send requests without a client, this lets you test your service error responses.
Bill
 
Kyle Brown
author
Ranch Hand
Posts: 3892
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can't you do this with Call.getEnvelopeString(SOAPTransport)?
Kyle
 
Srini Admala
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Axis alpha 3 comes with tcpmon tool which can used to copy-paste-print the SOAP Request/Response.

Srini
 
Srini Admala
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here's the link
http://xml.apache.org/axis/
Click on User's Guide and go to the bottom of the page on instructions how to use tcpmon.

Srini
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!