C# 调用 Web Service 时出现 : 407 Proxy Authentication Required错误的解决办法

            // 记得 using  System.Net;

       System.Net.WebProxy myProxy = new System.Net.WebProxy("localhost:9099", true); myProxy.Credentials = CredentialCache.DefaultCredentials; wsTest.Service client = new wsTest.Service(); client.Proxy = myProxy; string rtnValue = client.HelloWorld();

 

你可能感兴趣的:(Authentication)