...
In
<ESB_HOME>/repository/conf/axis2/axis2.xml
, add the following parameters to thetransportSender
configuration for PassThroughHttpSender, PassThroughHttpSSLSender, HttpCoreNIOSender, and HttpCoreNIOSSLSender:<parameter name="http.proxyHost" locked="false">hostIPhostName</parameter>
where<parameter name="http.proxyPort" locked="false">portNumber</parameter>
hostIP
andhostName
andportNumber
specify the IP address host name and port number of the proxy server.
- Uncomment the following parameter in the PassThroughHttpSSLSender and HttpCoreNIOSSLSender configurations and change the value to "
AllowAll
".<parameter name="HostnameVerifier">AllowAll</parameter>
For example, if the host name and port number of proxy server is localhost:8080, your transportSender configurations for PassThroughHttPSender and PassThroughHttpSSLSender would look like this:
...
Code Block | ||||
---|---|---|---|---|
| ||||
<transportSender name="https" class="org.apache.synapse.transport.passthru.PassThroughHttpSSLSender"> <parameter name="non-blocking" locked="false">true</parameter> <parameter name="keystore" locked="false"> <KeyStore> <Location>repository/resources/security/wso2carbon.jks</Location> <Type>JKS</Type> <Password>wso2carbon</Password> <KeyPassword>wso2carbon</KeyPassword> </KeyStore> </parameter> <parameter name="truststore" locked="false"> <TrustStore> <Location>repository/resources/security/client-truststore.jks</Location> <Type>JKS</Type> <Password>wso2carbon</Password> </TrustStore> </parameter> <parameter name="http.proxyHost" locked="false">localhost</parameter> <parameter name="http.proxyPort" locked="false">8080</parameter> <parameter name="HostnameVerifier">AllowAll</parameter> </transportSender> |
...