You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by "denis.wang" <su...@yahoo.com> on 2007/03/21 14:31:02 UTC
Http Header: Content-Length not set
Hello,
I am using Axis2 wsdl2java to generate a client stub. However, when the
request is sent, the HTTP Header Content-Length is not set. As a result the
server side rejects the request.
Is there an option I need to configure to turn on the header?
I have a very tight deadline for the project and am open to quick-dirty ways
to get it fixed ASAP.
Thanks.
Denis
--
View this message in context: http://www.nabble.com/Http-Header%3A-Content-Length-not-set-tf3440676.html#a9593907
Sent from the Axis - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
Re: Http Header: Content-Length not set
Posted by "denis.wang" <su...@yahoo.com>.
Thanks a lot! it works.
--
View this message in context: http://www.nabble.com/Http-Header%3A-Content-Length-not-set-tf3440676.html#a9611847
Sent from the Axis - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
Re: Http Header: Content-Length not set
Posted by Thilina Gunarathne <cs...@gmail.com>.
serviceStub._getServiceClient().getOptions().setProperty(org.apache.axis2.transport.http.HTTPConstants.CHUNKED,
> Boolean.TRUE);
Ooops.. This must be Boolean.FALSE.
--
Thilina Gunarathne - http://www.wso2.com - http://thilinag.blogspot.com
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
Re: Http Header: Content-Length not set
Posted by Thilina Gunarathne <cs...@gmail.com>.
Please see here more[1].. It must be the same issue...
You can get to the Options object of the generated stub as follows..
serviceStub._getServiceClient().getOptions().setProperty(org.apache.axis2.transport.http.HTTPConstants.CHUNKED,
Boolean.TRUE);
~Thilina
[1]http://wso2.org/library/952
On 3/21/07, denis.wang <su...@yahoo.com> wrote:
>
> Hello,
>
> I am using Axis2 wsdl2java to generate a client stub. However, when the
> request is sent, the HTTP Header Content-Length is not set. As a result the
> server side rejects the request.
> Is there an option I need to configure to turn on the header?
> I have a very tight deadline for the project and am open to quick-dirty ways
> to get it fixed ASAP.
> Thanks.
> Denis
> --
> View this message in context: http://www.nabble.com/Http-Header%3A-Content-Length-not-set-tf3440676.html#a9593907
> Sent from the Axis - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
--
Thilina Gunarathne - http://www.wso2.com - http://thilinag.blogspot.com
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org