2
如何将代理服务器添加到WCF中的自定义绑定中?WCF CustomBinding和代理
如何将代理服务器添加到WCF中的自定义绑定中?WCF CustomBinding和代理
我发现了解决方案:
HttpsTransportBindingElement httpsTransport = new HttpsTransportBindingElement();
httpsTransport.ProxyAddress = new Uri("proxyaddress");
httpsTransport.MaxReceivedMessageSize = 2147483647; stsBinding.Elements.Add
(httpsTransport);
其中stsBinding是我们
好的,那么我们需要指定哪些凭据?我应该如何输入我的代理用户名和代理密码? – 2013-08-21 08:37:32
我发现溶液CustomBinding的类型: HttpsTransportBindingElement httpsTransport =新HttpsTransportBindingElement(); httpsTransport.ProxyAddress = new Uri(“proxyaddress”); httpsTransport.MaxReceivedMessageSize = 2147483647; stsBinding.Elements.Add(httpsTransport); 其中stsBinding是我们的CustomBinding类型 – 2009-12-15 12:08:25