0 Replies Latest reply on Feb 15, 2018 6:24 AM by Hans-Michael Rupp

    JAX-WS: turn off Transfer-Encoding: chunked

    Hans-Michael Rupp Novice

      Hello,

       

      we are using Wildfly 10. We have to consume a SOAP Webservice which apparently cannot cope with Transfer-Encoding: chunked.

      So I have to turn this off.

      So far I have found no possibilty.

       

      I have seen some code like

      Client client = ClientProxy.getClient(this.ikfzPortType);

      HTTPConduit conduit = (HTTPConduit) client.getConduit();

      HTTPClientPolicy httpClientPolicy = new HTTPClientPolicy();

      httpClientPolicy.setConnectionTimeout(36000);        

      conduit.setClient(httpClientPolicy);

       

      but these are classes from Apache cxf. When I add dependencies for those my project does not deploy any more. Besides I really don't like to use third party libraries, I try to use only the JEE7 Apis (we have to deploy on Weblogic too ..)

       

      Any ideas would be highly appreciated.

       

      Hans