Proxy authenticated required

J

John

Hi

I am trying to call a web service from behind a MS ISA Server on a sbs2003
machine. The calling program is coming up with this error; The request
failed with HTTP status 407: Proxy Authentication Required ( The ISA Server
requires authorization to fulfil the request. Access to the Web Proxy
service is denied. ).

Any idea how I can provide the proxy authentication within the vb.net code
when calling the web service?

Thanks

Regards
 
G

Glenn

John

Create a WebProxy instance and give it the name of your proxy server and a
NetworkCredentials instance.

Set the webservice.Proxy property equal to your web proxy instance.

Sorry, C# only example.

NetworkCredential nc = new NetworkCredential( "hsimpson", "duffbeer",
"homersdomain" );
WebProxy proxy = new WebProxy( "http//webproxyserver:80" );
proxy.Credentials = nc;
MyWebService mws = new MyWebService();
mws.Proxy = proxy;

Glenn
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,994
Messages
2,570,222
Members
46,809
Latest member
moe77

Latest Threads

Top