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.

All docs This doc

Versions Compared

Key

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

...

Configuring WSO2 EI to route messages through a proxy server

See the instructions given below.

For non-blocking calls

To configure WSO2 EI the ESB profile to route messages through a proxy server:

...

  1. Open the <EI_HOME>/conf/axis2/axis2.xml file

...

  1. Add the following parameters in the <transportSender>

...

  1. configuration of the http transport:
    • http.proxyHost - The host name of the proxy server.
    • http.proxyPort - The port number of the proxy server.

...

  1. See the example give below:

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

...

  1. The above configuration ensures that all HTTP requests pass through the configured proxy server.

For blocking calls

To configure the ESB profile to route messages (non-blocking) through a proxy server:

  1. Open the <EI_HOME>/conf/axis2/axis2_blocking_client.xml file. 
  2. Add the following parameters in the <CommonsHTTPTransportSender> configuration of the http transport:
    • http.proxyHost - The host name of the proxy server.
    • http.proxyPort - The port number of the proxy server.

    See the example give below:

    Code Block
    languagexml
    <parameter locked="false" name="http.proxyHost">******copart.com</parameter>
    <parameter locked="false" name="http.proxyPort">3128</parameter>

    The above configuration ensures that all HTTP requests pass through the configured proxy server.

Info
titleBypass the proxy server for blocking calls?

If you have a proxy server configured, you can apply a system property to bypass the proxy server and route messages (blocking only) directly to the endpoint. 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



Info

A proxy server might require HTTP basic authentication before it handles communication from WSO2 EI. 

...