For such scenarios, you need to configure the WSO2 EI transport sender to forward messages through a proxy server.
A proxy server might require HTTP basic authentication before it handles communication from the WSO2 EI.
Configuring proxy profiles in WSO2 EI
When using WSO2 EI, there can be scenarios where you need to configure multiple proxy servers to route messages to different endpoints as illustrated in the following diagram.
<EI_HOME>/conf/axis2/axis2.xmlfile, add the
proxyProfilesparameter in the
<transportSender>configuration of the http transport, and then define multiple profiles based on the number of proxy servers you need to have.
When you define a profile, it is mandatory to specify the
proxyPortparameters for each profile.
Following The following is a sample proxy profile configuration that you can have in the
<transportSender> configuration of the http transport: