Re: Axis2 client - counting bytes sent and received
> 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.
Re: Axis2 client - counting bytes sent and received
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 On Fri, Dec 12, 2008 at 4:04 PM, Michele Mazzucco < michele.mazzu...@ncl.ac.uk> wrote: > What about using a custom handler with a null output stream? > > > Michele > > > On 11 Dec 2008, at 23:42, Dave Meibusch wrote: > > Hi, >> I'm attempting to log statistics for my system, including the bytes >> sent/received for the components using Axis2 client code. >> >> Digging through the source of HttpClient, HttpMethod (latter is accessible >> from >> Axis2 MessageContext) has not been successful. The Content-Length HTTP >> header is >> not reliable (in particular with Chunking enabled). >> >> I'm not that hopeful, but perhaps someone has been down a similar path >> before me? >> >> thanks, >> Dave >> >> > -- Keith Chapman Senior Software Engineer WSO2 Inc. Oxygenating the Web Service Platform. http://wso2.org/ blog: http://www.keith-chapman.org
Re: Axis2 client - counting bytes sent and received
What about using a custom handler with a null output stream? Michele On 11 Dec 2008, at 23:42, Dave Meibusch wrote: Hi, I'm attempting to log statistics for my system, including the bytes sent/received for the components using Axis2 client code. Digging through the source of HttpClient, HttpMethod (latter is accessible from Axis2 MessageContext) has not been successful. The Content-Length HTTP header is not reliable (in particular with Chunking enabled). I'm not that hopeful, but perhaps someone has been down a similar path before me? thanks, Dave
Axis2 client - counting bytes sent and received
Hi, I'm attempting to log statistics for my system, including the bytes sent/received for the components using Axis2 client code. Digging through the source of HttpClient, HttpMethod (latter is accessible from Axis2 MessageContext) has not been successful. The Content-Length HTTP header is not reliable (in particular with Chunking enabled). I'm not that hopeful, but perhaps someone has been down a similar path before me? thanks, Dave