To be able to debug them, I want to see what SOAP messages are sent/received from my Axis web service.
The hosting server is Tomcat.
How can logging of all the SOAP requests/responses be enabled and where is the log file stored?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you want to log the SOAP messages you will need to create a custom handler. Axis handlers are called when handling the requests/responses so you just have to register your own. Here is an example of how to log the messages.
If you want to write the messages to a file you could use Log4j for example. If you just want to debug the messages you can also use something like Apache TCPMon.