You want to see the encrypted stuff or the pre-encrypted stuff? Here's how I dump the envelopes in my client call code:
org.apache.axis.Message m = call.getMessageContext().getRequestMessage(); _requestEnvelope = (m == null) ? null : m.getSOAPEnvelope(); if (m != null) logIt(StringUtil.strcat("Request Envelope:", _requestEnvelope.toString())); m = call.getMessageContext().getResponseMessage(); _responseEnvelope = (m == null) ? null : m.getSOAPEnvelope(); if (m != null) logIt(StringUtil.strcat("Response Envelope:", _responseEnvelope.toString())); -gr -----Original Message----- From: Nelson Minar [mailto:[EMAIL PROTECTED] Sent: Thursday, October 07, 2004 8:19 PM To: [EMAIL PROTECTED] Subject: capturing SOAP XML in a client for debug? What's the absolute simplest way for a SOAP client written with Axis to capture the XML sent and received to an SSL service and display it for debugging purposes? I'm looking for something I can use for user support, so it needs to be really easy. Here are the ways I know to capture the XML and the drawbacks: tcpmon (or other packet sniffing approaches like SOAPScope): Doesn't work for SSL. (SOAPScope has this ability but it's not readily available.) SOAP Monitor: Requires special access to the server logging configuration: Requires user understands how to configure log4j / java.util.logging / whatever on the client. This seems fairly complicated. What would be ideal for me is a single static method call, something like "org.apache.axis.Foo.dumpXmlToStderr(true);". More options here: http://nagoya.apache.org/wiki/apachewiki.cgi?AxisProjectPages/MonitorSOAPTraffic