SetBasicAuthentication
Description
Determines whether the SoapConnection object uses basic
authentication for a Web service connection.
Syntax
|
1 |
conn.SetBasicAuthentication (string domain, string userID, string password) |
|
Argument |
Description |
|---|---|
|
conn |
The name of the SoapConnection object that |
|
domain |
A string for the Web domain to which the user |
|
userID |
A string for an https connection. |
|
password |
A string for an https connection. |
Return value
Long.
Valid values are 0 for success, and 50 for failure.
Usage
You can call the SetBasicAuthentication method instead of
including client identification information in the options argument of
the SetOptions method.
If you are using .NET Web services, you can call the
UseIntegratedWindowsAuthentication method for Integrated Windows
Authentication.
See also