You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Samisa Abeysinghe (JIRA)" <ji...@apache.org> on 2010/12/19 12:29:01 UTC

[jira] Resolved: (AXIS2-4372) Content-Length header not set by Axis2 server

     [ https://issues.apache.org/jira/browse/AXIS2-4372?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Samisa Abeysinghe resolved AXIS2-4372.
--------------------------------------

    Resolution: Invalid

The HTTP behavior here is correct. 

You cannot use HTTP content length to figure out the attachment length. In includes the SOAP bit too. 

> Content-Length header not set by Axis2 server
> ---------------------------------------------
>
>                 Key: AXIS2-4372
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4372
>             Project: 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....@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....@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....@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....@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.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org