Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 38341 invoked from network); 11 Jun 2009 07:11:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 11 Jun 2009 07:11:29 -0000 Received: (qmail 59288 invoked by uid 500); 11 Jun 2009 07:11:40 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 59195 invoked by uid 500); 11 Jun 2009 07:11:40 -0000 Mailing-List: contact axis-dev-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-dev@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-dev@ws.apache.org Received: (qmail 59019 invoked by uid 99); 11 Jun 2009 07:11:40 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Jun 2009 07:11:40 +0000 X-ASF-Spam-Status: No, hits=-1998.5 required=10.0 tests=ALL_TRUSTED,WEIRD_PORT X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Jun 2009 07:11:29 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id A0911234C046 for ; Thu, 11 Jun 2009 00:11:07 -0700 (PDT) Message-ID: <1512639168.1244704267656.JavaMail.jira@brutus> Date: Thu, 11 Jun 2009 00:11:07 -0700 (PDT) From: "Julien Henry (JIRA)" To: axis-dev@ws.apache.org Subject: [jira] Created: (AXIS2-4372) Content-Length header not set by Axis2 server MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org Content-Length header not set by Axis2 server --------------------------------------------- Key: AXIS2-4372 URL: https://issues.apache.org/jira/browse/AXIS2-4372 Project: Axis 2.0 (Axis2) Issue Type: Bug Affects Versions: 1.4.1 Reporter: Julien Henry I'm trying to get size of the big attachment I'm downloading using Axis2. Axis2 is used on both side (client and server). The issue is the server is not sending content-size header so I can't estimate the progress of my download. Here are the headers: DEBUG 18:30:51.184 c.t.i.p.c.service.impl.HttpConnection - Open connection to xxxxxx.sud.mycompany.fr:8085 DEBUG 18:30:51.199 httpclient.wire.header - >> "POST /project-vault-local/services/VaultService HTTP/1.1[\r][\n]" DEBUG 18:30:51.199 o.a.commons.httpclient.HttpMethodBase - Adding Host request header DEBUG 18:30:51.199 httpclient.wire.header - >> "Content-Type: multipart/related; boundary=MIMEBoundaryurn_uuid_8E481CB0C6ECBADFA21244478651319; type="application/xop+xml"; start="<0.urn:uuid:8E481CB0C6ECBADFA21244478651320@apache.org>"; start-info="text/xml"[\r][\n]" DEBUG 18:30:51.199 httpclient.wire.header - >> "SOAPAction: "downloadPPF"[\r][\n]" DEBUG 18:30:51.230 httpclient.wire.header - >> "User-Agent: Axis2[\r][\n]" DEBUG 18:30:51.230 httpclient.wire.header - >> "Host: xxxxxx.sud.mycompany.fr:8085[\r][\n]" DEBUG 18:30:51.230 httpclient.wire.header - >> "Transfer-Encoding: chunked[\r][\n]" DEBUG 18:30:51.230 httpclient.wire.header - >> "[\r][\n]" DEBUG 18:30:51.230 o.a.c.h.methods.EntityEnclosingMethod - Request body sent DEBUG 18:30:51.262 httpclient.wire.header - << "HTTP/1.1 200 OK[\r][\n]" DEBUG 18:30:51.262 httpclient.wire.header - << "HTTP/1.1 200 OK[\r][\n]" DEBUG 18:30:51.262 httpclient.wire.header - << "Server: Apache-Coyote/1.1[\r][\n]" DEBUG 18:30:51.262 httpclient.wire.header - << "Content-Type: multipart/related; boundary=MIMEBoundaryurn_uuid_2A7DE541ADE50F0A3C1244478647998; type="application/xop+xml"; start="<0.urn:uuid:2A7DE541ADE50F0A3C1244478647999@apache.org>"; start-info="text/xml"[\r][\n]" DEBUG 18:30:51.262 httpclient.wire.header - << "Transfer-Encoding: chunked[\r][\n]" DEBUG 18:30:51.262 httpclient.wire.header - << "Date: Mon, 08 Jun 2009 16:30:47 GMT[\r][\n]" DEBUG 18:30:51.262 httpclient.wire.header - << "[\r][\n]" DEBUG 18:31:12.485 httpclient.wire.header - << "[\r][\n]" I have read here: http://markmail.org/message/vhyszlcyuptphvd6 that it may be solved by disabling chunked transfert encoding and I also tried by forcing to HTTP 1.0: stub._getServiceClient().getOptions().setProperty(org.apache.axis2.transport.http.HTTPConstants.CHUNKED, Boolean.FALSE); stub._getServiceClient().getOptions().setProperty(org.apache.axis2.transport.http.HTTPConstants.HTTP_PROTOCOL_VERSION, org.apache.axis2.transport.http.HTTPConstants.HEADER_PROTOCOL_10); But the result is not better: DEBUG 18:36:44.294 o.a.c.h.params.DefaultHttpParams - Set parameter http.protocol.version = HTTP/1.0 DEBUG 18:36:44.294 c.t.i.p.c.service.impl.HttpConnection - Open connection to xxxxx.sud.mycompany.fr:8085 DEBUG 18:36:44.326 httpclient.wire.header - >> "POST /project-vault-local/services/VaultService HTTP/1.0[\r][\n]" DEBUG 18:36:44.326 o.a.commons.httpclient.HttpMethodBase - Adding Host request header DEBUG 18:36:44.341 httpclient.wire.header - >> "Content-Type: multipart/related; boundary=MIMEBoundaryurn_uuid_A1E117B6C0A256F56A1244479004429; type="application/xop+xml"; start="<0.urn:uuid:A1E117B6C0A256F56A1244479004430@apache.org>"; start-info="text/xml"[\r][\n]" DEBUG 18:36:44.341 httpclient.wire.header - >> "SOAPAction: "downloadPPF"[\r][\n]" DEBUG 18:36:44.341 httpclient.wire.header - >> "User-Agent: Axis2[\r][\n]" DEBUG 18:36:44.341 httpclient.wire.header - >> "Host: xxxxx1.sud.mycompany.fr:8085[\r][\n]" DEBUG 18:36:44.341 httpclient.wire.header - >> "Content-Length: 840[\r][\n]" DEBUG 18:36:44.341 httpclient.wire.header - >> "[\r][\n]" DEBUG 18:36:44.341 o.a.c.h.methods.EntityEnclosingMethod - Request body sent DEBUG 18:36:44.373 httpclient.wire.header - << "HTTP/1.1 200 OK[\r][\n]" DEBUG 18:36:44.373 httpclient.wire.header - << "HTTP/1.1 200 OK[\r][\n]" DEBUG 18:36:44.373 httpclient.wire.header - << "Server: Apache-Coyote/1.1[\r][\n]" DEBUG 18:36:44.373 httpclient.wire.header - << "Content-Type: multipart/related; boundary=MIMEBoundaryurn_uuid_2A7DE541ADE50F0A3C1244479000711; type="application/xop+xml"; start="<0.urn:uuid:2A7DE541ADE50F0A3C1244479000712@apache.org>"; start-info="text/xml"[\r][\n]" DEBUG 18:36:44.373 httpclient.wire.header - << "Date: Mon, 08 Jun 2009 16:36:40 GMT[\r][\n]" DEBUG 18:36:44.373 httpclient.wire.header - << "Connection: close[\r][\n]" DEBUG 18:36:44.373 httpclient.wire.header - << "[\r][\n]" Do you know what is the issue? -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.