Greetings, how can I add proxy server to my custom binding in WCF?
A:
I found the solution:
HttpsTransportBindingElement httpsTransport = new HttpsTransportBindingElement();
httpsTransport.ProxyAddress = new Uri("proxyaddress");
httpsTransport.MaxReceivedMessageSize = 2147483647; stsBinding.Elements.Add
(httpsTransport);
where stsBinding is our type of CustomBinding
niao
2009-12-23 10:41:19