I am trying to connect to a URI pointing to a WSDL file which describes a WCF service by using the MetadataExchangeClient class.
var mexClient = new MetadataExchangeClient(uri, MetadataExchangeClientMode.HttpGet);
var metaDocs = mexClient.GetMetadata();
The problem is that I cannot access this uri directly and need to go through a HTTP proxy server. The proxy server URL can change at runtime so I cannot simply configure it through the app.config file.
Where can I specify the proxy server information in the MetadataExchangeClient class?
Anyone got an idea? WCF experts?