通过WCF服务传递代理服务器凭据 [英] Passing proxy server credentials through WCF service

查看:167
本文介绍了通过WCF服务传递代理服务器凭据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我的wcf服务需要将文件发送到另一个通过互联网提供的wcf服务.我的WCF服务托管在组织所在域中的计算机上的Windows服务中.与外界的所有通信都通过代理服务器进行.我尝试打开主机Windows Service中的模拟,然后将有效凭据提供给该服务的登录身份"属性.一切正常.但是,显然这不是要完成的事情.

有什么我可以设置代理服务器详细信息并将有效凭据发送到代理服务器,然后再通过WCF服务代码通过Internet将文件发送到另一个WCF服务的文件吗?

Hi,

My wcf service needs to send some files to another wcf service which present over the internet. My WCF service is hosted in a windows service on a computer in my organization''s domain. All the communications to the outside world happen through a Proxy Server. I tried turning on the impersonation in the host Windows Service and then gave valid credentials to the ''Log on as'' property of the service. It is working fine. But, apparently, this is not to be done.

Is there anything, that I can set the proxy server details and send the valid credentials to the proxy server before sending files through my WCF service code to another WCF service over the internet?

推荐答案

对于绕过代理服务器,您需要从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


这篇关于通过WCF服务传递代理服务器凭据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆