http - How to disable chunked encoding in Mule cxf:proxy-client -
i'm using mule 3.3.2
cxf:proxy-client
call third-party soap service way:
<outbound-endpoint address="https://www.xyz.biz/dms/call.aws" mimetype="text/xml" connector-ref="https.connector" responsetimeout="100000"> <cxf:proxy-client payload="envelope" enablemulesoapheaders="false"> <cxf:ininterceptors> <spring:bean class="org.apache.cxf.interceptor.loggingininterceptor" /> </cxf:ininterceptors> <cxf:outinterceptors> <spring:bean class="org.apache.cxf.interceptor.loggingoutinterceptor" /> </cxf:outinterceptors> </cxf:proxy-client> </outbound-endpoint>
by default, message transmitted chunked
unfortunately server cannot handle that. how can disable chunking in proxy-client
instead of transfer-encoding: chunked
, content-length
header passed.
that can done forcing http version 1.0
simply add following transformer
<message-properties-transformer> <!-- add http version property message --> <add-message-property key="http.version" value="http/1.0" /> </message-properties-transformer>
before outbound endpoint
Comments
Post a Comment