File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Web Services and the fly likes Apache Axis logging of SOAP Request/Response Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Apache Axis logging of SOAP Request/Response" Watch "Apache Axis logging of SOAP Request/Response" New topic

Apache Axis logging of SOAP Request/Response

akhil karthik

Joined: Jul 06, 2009
Posts: 13
I have a javaclient calling in Htts :// webservice call. As SSL eanbled ,the message will be encryted. Is there a way, i can log the Request/Response XMLS, as it will be easy for my debugging. I wanted to have the logging avaliable for debugging. How do we accomplish using Apache Axis stubs? as i am using Apache Axis wsdl2java and would like to know if there are any example on how to use any Axis logging to log the SOAP Request/Responses?

Any suggestions are highly appreciable.
Ivan Krizsan
Ranch Hand

Joined: Oct 04, 2006
Posts: 2198
I don't know if this is appropriate for the version of Axis you use, but have you seen the class org.apache.axis.handlers.LogHandler?
This is a handler which logs request and response messages to the Axis log.
If this is not appropriate, then probably there is something similar in the version you use. JAX-WS also has a handler-mechanism which can be used for logging SOAP messages on server and client side.
Best wishes!

My free books and tutorials:
I agree. Here's the link:
subject: Apache Axis logging of SOAP Request/Response
It's not a secret anymore!