Sunday, October 29, 2017

How to create http proxy service in Wso2 ESB

Now we are going to explain about how to create http proxy service and call it to with client side.


Configuring Wso2 ESB to route messages through a proxy server


Edit the <ESB_HOME>/repository/conf/axis2/axis2.xml file, and add the following parameters in the <transportSender> configuration of the http transport:
  • http.proxyHost - The host name of the proxy server.
  • http.proxyPort - The port number of the proxy server.

You can see like this code when you set above parameters. 

<transportSender name="http" 
   class="org.apache.synapse.transport.passthru.PassThroughHttpSender">    
    <parameter name="non-blocking" locked="false">true</parameter>
    <parameter name="http.proxyHost" locked="false">localhost</parameter>
    <parameter name="http.proxyPort" locked="false">8080</parameter>
</transportSender>


Create proxy service using Wso2 Developer Studio.




No comments:

Post a Comment