There are multiple ways to do that. One is to log the payload before calling sendReceive. But if you do not have means of making those changes, then you can do either of the following a) Use Apache TCPMON to listen for your messages Here is how to do this. Suppose your endpoint is http://localhost:8080/axis2/yourServiceURI, then you can set TCPMON to listen on 8090 and set the target port to 8080. Then change the endpoint in your client to use port 8090. You should start seeing the messages b) If you have access to the service side and SOAPMonitor is enable and deployed right, you can access the URL http://localhost:port/axis2/SOAPMonitor which should list the SOAP requests and responses. I believe you can also create a handler (even on the client side) that can log the message. I am not 100% certain on this however. Hope this helps Madhav
From: [EMAIL PROTECTED]: [email protected]; [EMAIL PROTECTED]: RE: How to dump SOAP message contents?Date: Fri, 6 Jun 2008 16:28:14 -0400 Hi Satish, Not quite what you are asking for, but are you aware of the following? https://tcpmon.dev.java.net/ It’s absolutely invaluable for debugging. _____________________________________________________________Stephen Kilburn, GeoPraxis Inc. From: satish madanwad [mailto:[EMAIL PROTECTED] Sent: June 6, 2008 09:18To: [EMAIL PROTECTED]: How to dump SOAP message contents? Hi, I am using WebServices with Apache Axis in my programs. I have generated client stubs and can prepare and send the WebService request properly. I am trying to dump SOAP message (XML format) which is sent to WebServer for processing (to examine exact message being sent). I am not able to find any APIs for the same. Can you please suggest, if there is any API to dump SOAP messages sent from Apache Axis to WebServer?Thanks in advance,Satish Download prohibited? No problem. CHAT from any browser, without download. _________________________________________________________________ Search that pays you back! Introducing Live Search cashback. http://search.live.com/cashback/?&pkw=form=MIJAAF/publ=HMTGL/crea=srchpaysyouback
