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

    Disabling HTTP chunked encoding in web service clients

    areimer2

      Hello,

       

      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.

        • 1. Re: Disabling HTTP chunked encoding in web service clients
          areimer2

          After some research, I found out that JBoss-CXF can be configured by providing a jbossws-cxf.xml file in the deployment archive.

          However, this requires the Spring framework. Currently, I get the following log message on startup:

           

          Spring not available, skipping check for user provided jbossws-cxf.xml / cxf.xml configuration files.

           

          I tried to install Spring as a module in JBoss, but without success. I still get the warning about Spring being unavailable.

          Is there anything to do besides creating the module structure under .../modules/org/springframework/spring ?

          • 2. Re: Disabling HTTP chunked encoding in web service clients
            areimer2

            Unfortunately, this did not work. Now my jbossws-cxf.xml is read but I was not able to configure it to do what I want, which is keeping CXF from sending chunked SOAP requests.

             

            Any ideas anyone?