Thanks for the answer. Will Axis2 include the content-length value in the HTTP header if I disable the chunking by default? The client seems to be very dependant of this header value!
Thanks in advance Pierre keith chapman wrote: > > AFAIK chunking is true by default (When HTTP 1.1 is used) and if you wanna > turn it off you have to specify it explicitly. Try this in your service > > MessageContext msgContext = org.apache.axis2.context > .MessageContext.getCurrentMessageContext().getOperationContext().getMessageContext( > WSDLConstants.MESSAGE_LABEL_OUT_VALUE ); > > msgContext.setProperty(HTTPConstants.CHUNKED,"false"); > > Thanks, > Keith. > > On 10/3/07, FFF7878 <[EMAIL PROTECTED]> wrote: >> >> >> Hello Axis users, >> I have a web service integrated with Axis2 that communicates with clients >> using gSOAP. The problem is that the client don't receive the complete >> XML >> response (sent in three TCP packets) when the WS is using Axis2 while it >> is >> working when using Axis1. >> HTTP 1.1 is used. In axis2.xml, i've disable chunking: >> <transportSender name="http" >> >> class="org.apache.axis2.transport.http.CommonsHTTPTransportSender"> >> <parameter name="PROTOCOL">HTTP/1.1</parameter> >> <!--<parameter >> name="Transfer-Encoding">chunked</parameter>--></transportSender> >> >> here is the HTTP header request of the client: >> POST /fsaDev/serverAuthent/SGPASupportWebService_0.2 HTTP/1.1 >> Host: www.tests.cleyris.com:443 >> User-Agent: gSOAP/2.7 >> Content-Type: text/xml; charset=utf-8 >> Content-Length: 1803 >> Connection: close >> Accept-Encoding: gzip, deflate >> SOAPAction: "productList" >> >> The HTTP header of the response when using Axis2 doesn't contain the >> content-lenght field and is not using HTTP chucking: >> HTTP/1.1 200 OK >> Date: Wed, 03 Oct 2007 08:48:58 GMT >> Server: Apache/2.0.53 (Fedora) >> Set-Cookie: JSESSIONID=0000OdoS96XVEDu8V5P6L0hKSAt:-1; Path=/ >> Expires: Thu, 01 Dec 1994 16:00:00 GMT >> Cache-Control: no-cache="set-cookie, set-cookie2" >> Content-Type: text/xml; charset=utf-8 >> Content-Language: fr-FR >> Connection: close >> >> The content-length field is set when using Axis1: >> HTTP/1.1 200 OK >> Date: Thu, 27 Sep 2007 17:05:41 GMT >> Server: IBM_HTTP_Server >> Content-Length: 19181 >> Set-Cookie: JSESSIONID=0000MFbDWxjMj23LS6_ufCPTglH:-1; Path=/ >> Expires: Thu, 01 Dec 1994 16:00:00 GMT >> Cache-Control: no-cache="set-cookie, set-cookie2" >> Content-Type: text/xml; charset=utf-8 >> Content-Language: fr-FR >> Connection: close >> >> Is there a way to set the content length field? I'm not a HTTP expert, >> does >> anybody see something strange? >> >> Thanks in advance >> >> Pierre >> -- >> View this message in context: >> http://www.nabble.com/-AXIS2--Content-length-not-set-in-header-tf4560984.html#a13016314 >> Sent from the Axis - User mailing list archive at Nabble.com. >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > > -- > Keith Chapman > WSO2 Inc. > Oxygen for Web Services Developers. > http://wso2.org/ > > -- View this message in context: http://www.nabble.com/-AXIS2--Content-length-not-set-in-header-tf4560984.html#a13023058 Sent from the Axis - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
