[This is preliminary documentation and is subject to change.]

Validates the user and if the user gets validated, the session is created. If the validation is successful, the organization is set to the last organization that is opened in the OfficeClip user interface.

Namespace:OfficeClip.Service.Web
Assembly: �OfficeClip.Service (in OfficeClip.Service)
Version: 8.1.1.0

Syntax

C#
public string ValidateUser(
	string emailAddress,
	string password
)
Visual Basic (Declaration)
Public Function ValidateUser ( _
	emailAddress As String, _
	password As String _
) As String
Visual C++
public:
String^ ValidateUser(
	String^ emailAddress, 
	String^ password
)

Parameters

emailAddress
Type: System..::.String
The email address of the user
password
Type: System..::.String
The password of the user

Return Value

Empty string if the validation is successful, error if the validation fails.

Examples

CopyLogin to the Web Service
public static void Login(
 WebServiceClient.Generic.OfficeClipGeneric ofg, string emailAddress, string password
 )
{
 try
 {
    // try using the webservice to validate the user, if successful,
    // an user session will be created
     string msg = ofg.ValidateUser(emailAddress, password);
    if (msg == string.Empty)
     Console.WriteLine("Login Successful");
    else
     Console.WriteLine("Login Failed: " + msg);
 }
 catch (SoapException ex)
 {
    Console.WriteLine(ex.Message);
 }
}

See Also