On Thu, Feb 26, 2009 at 7:50 PM, Seshi Patibanda <[email protected]> wrote:
> Hello all, > > I need to get the content length of the SOAP response message. Following is > the SOAP response seen coming over the wire. > > [java] DEBUG [org.apache.commons.httpclient.methods.EntityEnclosingMethod] > Request body sent > [java] DEBUG [httpclient.wire.header] << "HTTP/1.1 200 OK[\r][\n]" > [java] DEBUG [httpclient.wire.header] << "HTTP/1.1 200 OK[\r][\n]" > [java] DEBUG [httpclient.wire.header] << "Server: > Apache-Coyote/1.1[\r][\n]" > [java] DEBUG [httpclient.wire.header] << "Content-Type: > text/xml;charset=UTF-8[\r][\n]" > [java] DEBUG [httpclient.wire.header] << "Content-Length: 205[\r][\n]" > [java] DEBUG [httpclient.wire.header] << "Date: Fri, 27 Feb 2009 00:25:48 > GMT[\r][\n]" > [java] DEBUG [httpclient.wire.header] << "[\r][\n]" > .... > > I have attempted to use _returnMessageContext.getProperty(HT > TPConstants.HEADER_CONTENT_LENGTH) but unable to get the content length > object. > > However, I was able to get the status code using > _returnMessageContext.getProperty(HTTPConstants.MC_HTTP_STATUS_CODE); > > Are there any methods available in Axis2 API to get the content length > either from the return message context or by other means? > > My configuration: Using Axi2 1.4 client stub implementation to call remote > web services. > > Any feedback is appreciated. > > Thanks, > > Seshi >
