How to set proxy credentials to specific wcf client?

后端 未结 3 999
渐次进展
渐次进展 2020-12-29 06:14

I need to connect to some public wcf service, but there is some proxy between me and service. If i use default proxy settings such as


  &l         


        
3条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-29 06:39

    Here's an article dealing with this issue.

    http://blogs.msdn.com/b/stcheng/archive/2008/12/03/wcf-how-to-supply-dedicated-credentials-for-webproxy-authentication.aspx

    In summary, this is how to set a proxy for a specific service in the web.config. In the binding config, set proxyAddress="http://myproxy:8080" and set useDefaultWebProxy="false"

    
      
         
          
          
            
            
          
        
      
    
    

提交回复
热议问题