Web Services Credentials , NetworkCredential, CredentialCache.DefaultCredentials
Web Services
Thread Starter: Paul Fox
Started: 03-22-2005 7:28
Replies: 0

Ireland .NET Developer Alliance :: Forums » Technologies » Web Services » Web Services Credentials , NetworkCredential, CredentialCache.DefaultCredentials
« Previous Thread
   22 Mar 2005, 7:28
Paul Fox is not online. Last active: 25/03/2005 15:10:05 Paul Fox

Top 10 Posts
Joined on 03-11-2005
Posts 9
  Web Services Credentials , NetworkCredential, CredentialCache.DefaultCredentials
To pass the credentials that will be used by a proxy class to connect to a web service, create an instance of a network credential class (System.NET namespace) :

Dim credentials As New NetworkCredential("username", "password")

or

Dim credentials As New NetworkCredential("username", "password", "domain")

WebService1.Credentials = credentials 'WebService1 is the name of the proxy class

or

MyBase.Credentials = System.Net.CredentialCache.DefaultCredentials 'MyBase is the base class of the web service class : webservice1
  
  Page 1 of 1 (1 items)
Ireland .NET Developer Alliance :: Forums » Technologies » Web Services » Web Services Credentials , NetworkCredential, CredentialCache.DefaultCredentials

Powered by Community Server :: Forums