tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bartolomeo Nicolotti <bnicolo...@siapcn.it>
Subject Log all http request
Date Wed, 23 Jun 2010 15:13:50 GMT
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


Mime
View raw message