2 Replies Latest reply on Feb 21, 2012 1:14 PM by Andreas Reimer

    Disabling HTTP chunked encoding in web service clients

    Andreas Reimer Newbie



      We are using JBoss 7.0.2 with the standalone-preview configuration. We generated a JAXWS client from a WSDL file with wsimport which we use from an MDB.

      The client works well, but it uses HTTP 1.1 chunked encoding (Transfer-Encoding: Chunked) in its SOAP requests.


      Our problem is that our HTTP traffic has to go through an older Squid proxy which cannot cope with chunked encoding. (Upgrading the proxy is not an option).


      How can we stop the client from using chunked encoding? Our SOAP messages are small (a few KB) so chunked encoding makes no sense anyway.


      Thanks in advance for any answers.