« Return to Thread: Transfer-Encoding: Chunked, how disable ?

Re: Transfer-Encoding: Chunked, how disable ?

by palmalex :: Rate this Message:

Reply to Author | View in Thread

just an update, I have the same problem with mule 2.2.1 and mule 2.2.0
palmalex wrote:
Hi,
I need to invoke a web service on an integration server (webMethods) that doesn't support transfer-encoding : chunked... looking on the forum I noticed that it's a common problem using cxf transport...

I try to use the cxf.xml to set up allowChunking = false using as following :
<beans xmlns="http://www.springframework.org/schema/beans"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xmlns:sec="http://cxf.apache.org/configuration/security"
  xmlns:http="http://cxf.apache.org/transports/http/configuration"
  xmlns:jaxws="http://java.sun.com/xml/ns/jaxws"
  xsi:schemaLocation="
    http://cxf.apache.org/configuration/security
       http://cxf.apache.org/schemas/configuration/security.xsd
           http://cxf.apache.org/transports/http/configuration
              http://cxf.apache.org/schemas/configuration/http-conf.xsd
           http://www.springframework.org/schema/beans
              http://www.springframework.org/schema/beans/spring-beans-2.0.xsd">


        <http:conduit name="*.http-conduit">
                <http:client   AllowChunking="false"/>
        </http:conduit>
</beans>

The connector cxf is configured :
<cxf:connector name="cxfConnector" configurationLocation="cxf.xml"
initializeStaticBusInstance="false" />

But checking the raw http request I still found the Transfer-Encoding: chunked.
Where am I wrong ?

The configuration of the service is :
<service name="resumeWm">
                        <inbound>
                                <jms:inbound-endpoint name="job_in" queue="jobs_toResume_dev" synchronous="false">
                                        <transformers>
                                                <jms:jmsmessage-to-object-transformer/>
                                                <mule-xml:xml-to-object-transformer/>
                                                <custom-transformer class="com.ge.oilandgas.batchrunner.transformer.BatchResponseToXml">
                                         <trasformers>
                                             .........
                                        </transformers>
                                        <response-transformers>
                                 <no-action-transformer/>
                                     </response-transformers>
                                </jms:inbound-endpoint>
                        </inbound>
                        <echo-component></echo-component>
                        <outbound>
                                <pass-through-router>
                                        <cxf:outbound-endpoint
                                                enableMuleSoapHeaders="false"
                                                applyTransformersToProtocol="false"
                                                connector-ref="cxfConnector"
                                                address="http://localhost:6200/service/batch"
                                                proxy="true"  
                                                synchronous="true"
                                                protocolConnector="cxfConnector">
                                        </cxf:outbound-endpoint>
                                </pass-through-router>
                        </outbound>
                </service>


Regards,
Alessio

 « Return to Thread: Transfer-Encoding: Chunked, how disable ?