Is it possible to provide WCF with a custom proxy address and custom credentials?
I\'ve found this answer on stackoverflow: How to set proxy with credentials to gen
If you set the WebRequest.DefaultWebProxy property to a new WebProxy with credentials, WCF will use it for all HTTP requests that it makes. (This will affect all HttpWebRequests used by the application unless explicitly overridden).
// get this information from the user / config file / etc.
Uri proxyAddress;
string userName;
string password;
// set this before any web requests or WCF calls
WebRequest.DefaultWebProxy = new WebProxy(proxyAddress)
{
Credentials = new NetworkCredential(userName, password),
};
My blog post on proxy servers contains further details.