开发者

How can I set an HTTP proxy on a WCF server side?

How can I set an HTTP proxy on a 开发者_如何学运维WCF server side?

Is there is any way for that ?


You use a proxy server when you need to access some resource that is not on the same network as the client and for which the client has no direct access. Is your web service accessing remote resources like for example web pages? If on the other hand you are having issues calling your service then you need to set the proxy on the client side.


specify the proxy settings in web.config file

<system.net>
        <defaultProxy enabled="true">
            <proxy proxyaddress="http://yourproxyserver:proxyport"/>
        </defaultProxy>     
    </system.net>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜