I am developing a web service, using Metro 2.0 and Tomcat 6, and I have a requirement to be able to log the XML payload of the request and response of a web method for development/support reasons. The payload would only be logged when in debug mode.
The Web Service uses a servlet implementation (com.sun.xml.ws.transport.http.servlet.WSServlet and .WSServletContextListener classes), if that affects the answer.
Is this even possible?
Thanks in advance, Andy