1 Reply Latest reply on Jun 12, 2012 12:32 AM by jaikiran pai

    How to disable chunked encoding (JBoss AS7)

    Amarkanth Ranganamayna Newbie

      Hello,

       

      I am getting the following error when i try to POST data to a webservice which doesn't support "CHUNKED" encoding.

       

      Previously (i.e. in Jboss 4.3), i was able to turn off the CHUNKED encoding by setting the following configuration in "jboss-as/server/default/deploy/jbossws.sar/META-INF/standard-jaxws-client-config.xml"

       

        <client-config>

          <config-name>Standard Client</config-name>

          <feature>http://org.jboss.ws/dispatch/validate</feature>

          <property>

            <property-name>http://org.jboss.ws/http#chunksize</property-name>

           <property-value>0</property-value>

          </property>

        </client-config>

       

       

      HOW CAN I DO THIS IN  JBOSS-AS7.1 ?

      I don't see   "jboss-as/server/default/deploy/jbossws.sar/META-INF/standard-jaxws-client-config.xml" anymore in AS7. Any help is much appreciated!

       

      The exact error that i'm running into is

       

      ==========================================================================================

      22:43:30,391 WARNING [org.apache.cxf.phase.PhaseInterceptorChain] (scheduler_Worker-3) Interceptor for {http://services.xyz.com/}OrderServcice#{http://services.xyz.com/}processOrder has thrown exception, unwinding now: org.apache.cxf.interceptor.Fault: Could not send Message.
           at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:64)
           at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:263)
           at org.apache.cxf.endpoint.ClientImpl.doInvoke(ClientImpl.java:531)
           at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:461)
           at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:364)
           at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:317)
           at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:88)
           at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:134)

      .......

      .......

      Caused by: org.apache.cxf.transport.http.HTTPException: HTTP response '411: Length Required' when communicating with https://services.xyz.com/OrderService
          at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponseInternal(HTTPConduit.java:1554)
           at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(HTTPConduit.java:1493)
           at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1401)
           at org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:56)
           at org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:648)
           at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:62)

      ==========================================================================================

       

       

      Thanks,

      Amar