开发者

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

开发者 https://www.devze.com 2023-01-12 11:52 出处:网络
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 cl

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

精彩评论

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