Does WCF client support http or socks5 proxy?

Hi,

Can a client consuming the wcf service be configed to bypass a proxy something like ie or msn. If can, how

Not sure it's right place to ask this question here, just hope you give me some advice on this topic.

Thanks.




Answer this question

Does WCF client support http or socks5 proxy?

  • calin tuns

    You can set proxy settings at the binding leval(both in config and or you can set binding properties programmatically)

    please check binding properties in this config

    EXAMPLE:

    < xml version="1.0" encoding="utf-8" >

    <configuration>

    <system.serviceModel>

    <client>

    <endpoint name=""

    address="http://localhost/servicemodelsamples/service.svc"

    binding="wsHttpBinding"

    bindingConfiguration="Binding1"

    contract="ICalculator" />

    </client>

    <bindings>

    <wsHttpBinding>

    <binding name="Binding1" bypassProxyOnLocal="True" proxyAddress="" useDefaultWebProxy="true"/>

    </wsHttpBinding>

    </bindings>

    </system.serviceModel>

    </configuration>

    -Thank you

    Madhu



  • devouges

    Right, I can set local proxy in the config, but, how can I set the username and password to authentication in proxy

    Thanks



  • Does WCF client support http or socks5 proxy?