> You should be able to do this easily by using a module. We do this to show statistics in the WSO2 Web Services Application Server (WSO2 WSAS) [1] which is built on top of Axis2. We have done this by using a module. > Thanks,Keith.[1] http://wso2.org/projects/wsas
Yes, a module with a custom handler does work find for inbound (in-out) requests. You can access the HttpServletRequest and Response (I'm running in Jetty) and from there get the raw bytes sent/received. I can't see any way to do this for Out-In requests that use HttpClient for send/receive. I can get the byte count for the SOAP messages (I think) but I really want the full transport stats including HTTP headers.