Calling a webservice through a proxy server

Here's a quick tip on how to call a webservice through a proxy server.

                Dim webproxy As New System.Net.WebProxy("Proxy server url or IP", myport)

                webproxy.Credentials = New System.Net.NetworkCredential("myuser", "mypassword", "mydomain")

                Dim proxy As New MyWebServiceProxy

                proxy.Proxy = webproxy

                proxy.CallMethod()

Published Tuesday, April 26, 2005 3:14 AM by admin
Filed Under:

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

What do you think?

(required) 
required 
optional
required