Ian Waters

Ian Waters

  • NA
  • 1
  • 0

Connecting to Web Services via Proxy

Nov 27 2008 8:51 AM


I have an Access application (don't ask) which uses a .Net component to connect to our web service.  Some of the people trying to use the program are on corporate networks and have proxies that require authroisation.  I have modified the component to specify the address and port number of the proxy and have tried to get it to pass through the Windows credentials, see code:

WebProxy prox = new System.Net.WebProxy(_proxy);
prox.Credentials = CredentialCache.DefaultCredentials;
service.Proxy = proxy;

It connects to the proxy ok but is still showing as an annonymous connection.  Any idea how I get it to pass through the credentials of the current logged on user?

Many thanks


Answers (1)