Why not just log the httpclient.wire logger to a different level and destination. It captures everything that is sent via the httpclient.
Hendry -----Original Message----- From: Bartolomeo Nicolotti [mailto:[email protected]] Sent: Wednesday, June 23, 2010 11:14 AM To: Tomcat Developers List; Tomcat Users List; axis-user Cc: Livio Costamagna; Marco Rosa; Gianpaolo Maggiore Subject: Log all http request Hello, we've a web service that receives SOAP RPC-encoded xml requests on HTTP through axis and tomcat 5.5. We'd like to log every xml rq we receive using a Filter, because we've to write the xml to a file whose name depends on the xml request. The problem is that one can call SevletRequest.getReader once. So we extended HttpServletRequestWrapper with the class in attachment, to read the request body once in a string and then to wrap the getReader method. Then we create a "clone" of the request we receive in the filter Is this a good way or there's another standard way to read HTTP request body in a Filter? Should we implement an axis handler? Many many thanks in advance Best regards Bartolomeo --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
