Accessing web service from behind proxy

If you are going to (via a proxy server) connect to a web service on the Internet you may need to do the following (VB.NET): Dim s As Service1 s = New Service1 s.Credentials = System.Net.CredentialCache.DefaultCredentials s.Proxy = New System.Net.WebProxy(”internal proxy server address”, 80) s.Proxy.Credentials = System.Net.CredentialCache.DefaultCredentials

SHARE:

Add comment

Loading