axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dorner, Thomas" <>
Subject AW: Content length must be specified
Date Tue, 23 Jan 2007 08:22:55 GMT
and thank you for your answer.
The problem is that there do not exist an similar constant in axis 1.4
What kind of option do you set - messageContext - AxisEngine ...?
Some help or solution for axis 1.4 would be helpfull - thank you


Von: Punnoose, Roshan [] 
Gesendet: Montag, 22. Januar 2007 17:41
Betreff: RE: Content length must be specified

I'm using Axis 2.0, but I don't think it would have changed. This is what I
did: added an option:


Options.setProperty(HTTPConstants.CHUNKED, false);


This forces Axis to add the Content-Length field in the HTTP Header.


Hope that helps.


Roshan Punnoose

Phone: 301-497-6039


From: Dorner, Thomas [] 
Sent: Monday, January 22, 2007 10:57 AM
Subject: Content length must be specified



I think I have some problem by using axis 1.4 Final with CommonsHTTPSender! 

The request is missing the "content-length" in the HTTP-Header (This problem
is knwon from Axis 1.2 ...). 
Instead there is a "Transfer-Encoding: chunked"! 

Is not a problem as long I am using an Axis Web-Service - but if I call a
Service which is implemented with the old IBM SOAP or a Lotus Notes Service,
I got the following error.

            <faultstring>Content length must be specified.</faultstring> 

Is there any known solution for this problem - is it a bug or do there
exists some propertie(s) I can set to handle this problem

Some helpfull hints will be great - Thanks in advance. 



The hole HTTP-Request I am sending: 

POST /DIAwebWebServices/rpcrouter HTTP/1.1 
Content-Type: text/xml; 
charset=utf-8 SOAPAction: "" 
User-Agent: Axis/1.4 
Transfer-Encoding: chunked  

<?xml version="1.0" encoding="UTF-8"?> 
<> "
<> "
<> ">

<> " xmlns:ns1="xxx"> 
            <clientid xsi:type="xsd:string">xxx</clientid> 

View raw message