且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

通过WCF服务传递代理服务器凭据

更新时间:2023-11-30 19:09:34

对于绕过代理服务器,您需要从wcf应用程序的web.config文件的BasicHttpBinding标记中添加以下属性
For Bypassing proxy servers you need to add the following property
bypassProxyOnLocal="true"

.
示例代码,

in BasicHttpBinding tag from web.config file of your wcf application.

Sample code,

<binding name="higherMessageSize_BASIC" closetimeout="00:30:00" opentimeout="00:30:00" receivetimeout="00:30:00" sendtimeout="00:30:00" bypassproxyonlocal="true" hostnamecomparisonmode="StrongWildcard" maxbufferpoolsize="524288000" maxreceivedmessagesize="65536000" messageencoding="Text" textencoding="utf-8" usedefaultwebproxy="true" allowcookies="false"></binding>



谢谢&问候,
BlueSathish



Thanks & Regards,
BlueSathish