Stacker
Stacker

Reputation: 8237

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 ?

Upvotes: 2

Views: 189

Answers (2)

ajay_whiz
ajay_whiz

Reputation: 17931

specify the proxy settings in web.config file

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

Upvotes: 0

Darin Dimitrov
Darin Dimitrov

Reputation: 1038710

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.

Upvotes: 2

Related Questions