简体   繁体   中英

Log all SOAP messages for Tomcat with Axis application

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?

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 .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM