+

Search Tips   |   Advanced Search

The <proxy> element of the HTTP adapter

Use a <proxy> element if you access an application through a proxy.

If the back-end application must be accessed through a proxy, add a <proxy> element inside the <connectionPolicy> element. If the proxy requires authentication, add a nested <authentication> element inside <proxy>. This element has the same structure as the one used to describe the authentication protocol of the adapter, described in The <authentication> element of the HTTP adapter.

The following example shows a proxy that requires basic authentication and uses a server identity:

<connectionPolicy xsi:type="http:HTTPConnectionPolicyType">
<protocol>http</protocol>
<domain>www.bbc.co.uk</domain>
<proxy>
<protocol>http</protocol>
<domain>wl-proxy</domain>
<port>8167</port>
<authentication>
<basic/>
<serverIdentity>
<username>${proxy.user}</username>
<password>${proxy.password}</password>
</serverIdentity>
</authentication>
</proxy>
</connectionPolicy>


Parent topic: The adapter XML File