|
||
Revision history:
Introduced in QPR 8.0
Authenticates to the web service with the credentials provided in the function call. The function returns ID of the authenticated session if the authentication is successful.
Synopsis:
string Authenticate(string logOnName, string password)
Return Value:
ID of the authenticated session as a string in the case of successful authentication.
Parameters:
logOnName: String. A valid username in the system.
password: String. Password for the user.
Example Procedure:
ServiceClient client = new ServiceClient("WSHttpBinding_IService");
string sessionId = client.Authenticate("qpr", "demo");
string xmlElement = client.QueryObjectsAsXml(sessionId, "[SC.1].SubObjects", "", "", "", "");
client.LogOff(sessionId);
client.Close();