Just create file proxy.properties:
proxyHostname=proxy
proxyPort=3128
proxyUsername=
proxyPassword=
declare 2 connectors:
<connector name="HttpProxyConnector"
className="org.mule.providers.http.HttpConnector">
<properties>
<file-properties location="proxy.properties" />
</properties>
</connector>
<connector name="HttpDirectConnector"
className="org.mule.providers.http.HttpConnector">
</connector>
and specify explicitly "connector" property on your endpoints:
<endpoint address="
http://localsite/service" connector="HttpDirectConnector"/>
<endpoint address="
http://remotesite/service" connector="HttpProxyConnector"/>
Dimitry thanks for your response, but I'm not sure about that, I have only one proxy, the first Web service is outside of my company and the second one is in my intranet, so how can I say to mule that local Web services must be invoked without proxy, the issue is nonProxyHosts proxy attribute is not available.
Thanks.
Dmitry wrote:
You may configure 2 different HTTP connectors with different proxy settings.
Jaime RodrÃguez wrote:
Hi,
My mule instance is behind a firewall and I need to invoke 2 Webservices the first one is external and the second one is internal (also behind the firewall), Mule send the local invocation to the firewall an failed. The http:connector element does not support the nonProxyHosts attribute, so I don't know how to configure mule in order to resolve local end points without the proxy.
This is a critical issue I need help very urgent. Thanks.