Hi Olivier
client -> s2/p2 -> s1/p1 -> ws1
The 411 - Length required error is definitely sent by "ws1", as it doesn't understand the default HTTP 1.1 chunked encoding used by Synapse. The HTTP spec states the following about this error:


     /http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html Section.
     10.4.12 411 Length Required/

/ The server refuses to accept the request without a defined Content- Length. The client MAY repeat the request if it adds a valid Content-Length header field containing the length of the message-body in the request message./

To overcome this, force use of HTTP 1.0 at s1/p1 by setting the following property before your send (to ws1)

<syn:property name="FORCE_HTTP_1.0" value="true" scope="axis2" />


You can use default HTTP 1.1 / chunked encoding between the client -> s2/p2 -> s1/p1

asankha

--
Asankha C. Perera

WSO2 - http://wso2.org
http://esbmagic.blogspot.com

Reply via email to