WCF Custom Http Proxy Authentication

前端 未结 2 346
独厮守ぢ
独厮守ぢ 2021-01-03 04:29

Is it possible to provide WCF with a custom proxy address and custom credentials?

I\'ve found this answer on stackoverflow: How to set proxy with credentials to gen

2条回答
  •  囚心锁ツ
    2021-01-03 05:28

    The client credentials you're setting are fine in order to authenticate to your services.
    For proxy authentication you need to use HttpTransportSecurity.ProxyCredentials.

    This link might help you out.

    http://msdn.microsoft.com/en-us/library/system.servicemodel.httptransportsecurity.proxycredentialtype.aspx

提交回复
热议问题