Quantcast
Channel: Sanjeewa Malalgoda's Blog
Viewing all articles
Browse latest Browse all 220

How to disable chunking - WSO2 ESB Proxy service

$
0
0

Some times .Net back end services are not supporting chunked encoding. By default
when  ESB calls back end it assumes back end supports chunked encoding.
If your .Net back end service cannot access through proxy service you can try this.
Sometimes you may get empty response for the request due to this issue.
So what we have to do is add following 2 lines to in sequence



<propertyname="FORCE_HTTP_1.0"value="true"scope="axis2"/>
 <propertyname="DISABLE_CHUNKING"value="true"scope="axis2"/>
 
See the following complete proxy service configuration

<proxyxmlns="http://ws.apache.org/ns/synapse"name="IssueProxy"
transports="https,http"statistics="disable"trace="disable"
startOnLoad="true">
 <target>
  <inSequence>
   <propertyname="FORCE_HTTP_1.0"value="true"scope="axis2"/>
   <propertyname="DISABLE_CHUNKING"value="true"scope="axis2"/>
   <send>
     <endpoint>
       <addressuri="http://192.168.1.216:3333/Service1.svc"/>
      </endpoint>
   </send>
   </inSequence>
   <outSequence>
      <send/>
   </outSequence>
   </target>
   <publishWSDLuri="http://192.168.1.216:3333/Service1.svc?wsdl"/>
</proxy>


Viewing all articles
Browse latest Browse all 220

Trending Articles