This documentation is for WSO2 Enterprise Integrator version 6.4.0 . View documentation for the latest release in the 6.x.x family and the latest release in the 7.x.x family.
Page Comparison - Working with Proxy Servers (v.13 vs v.14) - WSO2 Enterprise Integrator 6.4.0 - WSO2 Documentation

All docs This doc

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

To configure the ESB profile to route messages through a proxy server (for non-blocking service calls), add the parameters given below to the the axis2.xml file  file (stored in the the <EI_HOME>/conf/axis2/ directory directory) , and update the values. This configuration ensures that all HTTP requests pass through the configured proxy server.

Code Block
<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>

The parameters are described below.

non-blocking
Specifies whether or not 'non-blocking' mode is enabled for the transport sender. Be sure that this parameter is set to true.
http.proxyHost
The host name of the proxy server.
http.proxyPort
The port (number)
through which
in the proxy server
should be accessed
.

For blocking service calls

To configure the ESB profile to route messages through a proxy server (for blocking service calls), add the parameters given below to the the axis2_blocking_client.xml file  file (stored in the <EI_HOME>/conf/axis2/ directory directory) , and update the values. This configuration ensures that all HTTP requests pass through the configured proxy server.

...

The parameters are described below.

ProxyHost
The host name of the proxy server.
ProxyPort
The port (number)
through which
in the proxy server
should be accessed
.
ProxyUser
The user name for connecting to the proxy server.
ProxyPassword
The password for connecting to the proxy server.
Info
titleBypass the proxy server for blocking calls?

In the case of blocking service calls, you can apply a system property in the ESB profile to bypass the proxy server and route messages directly to the hosts that should receive the messages. Explained below are two methods of applying the system property:

  • Set the system property in the product startup script that is located in the <PRODUCT_HOME>/bin/ directory as shown below. Note that the list of host names are separated by the pipe symbol ('|').

    Code Block
    -Dhttp.nonProxyHosts =10.|localhost|127.0.0.1|.\.domain.com \
  • Pass the system property when you start the server as shown below.

    Code Block
    ./integrator.sh -Dhttp.nonProxyHosts =10.|localhost|127.0.0.1|.\.domain.com

...