Friday, July 18, 2008

Connection Reset Problem in Axis2-Client

Chunking support is only available in HTTP Version 1.1. By default chunking is enabled in Axis2.xml. One can disable chunking at deployment time or at runtime. Deployment time : One can disable HTTP chunking by removing or commenting out the following element from Axis2.xml . Chunked encoding not supported for HTTP version HTTP/1.0

... chunked ...
Runtime : User can disable the chunking using following property set in Client or Stub,
... options.setProperty(org.apache.axis2.transport.http.HTTPConstants.CHUNKED, Boolean.FALSE); ...
What we have done is we have removed the above parameter from our axis2.xml.

Reference:
http://wso2.org/library/209