databaseLogoff

Ends the SOAP session and logs out the user from the project. A SOAP error envelope is returned if the operation fails.

Make sure when the session is created, it also always logs out using a try/catch block or similar method. This should be the final call made to the SOAP server using this cookie.

Parameters

Parameter Type Description
cookie long Session cookie returned by projectLogon.

Return value

Value Type Notes
result int 0 indicates success. Check the return value in case of an error.

Example

long cookie = -1;

try

{

cookie = ttsdk.ProjectLogon(proj, username, password);

 

// . . . SOAP calls

}

catch (Exception e)

{

Console.WriteLine("An exception occurred:");

Console.WriteLine(e.Message);

}

finally

{

if (cookie != -1)

{

ttsdk.DatabaseLogoff(cookie);

}

}