tags:

views:

87

answers:

1

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