Using the Disconnect Web Method
3 min
disconnects the user from the tenant and removes the session request syntax frsheatintegrationconnectionresponse disconnect(string sessionkey, string tenantid) parameters sessionkey session key string obtained from connect web method tenantid the tenant for which the session is created return value frsheatintegrationconnectionresponse class, defined as follows public class frsheatintegrationconnectionresponse { public string connectionstatus; public string sessionkey; public string exceptionreason; } the frsheatintegrationconnectionresponse class has the following fields connectionstatus provides a status about the state of the connection the connectionstatus value is null when disconnect web method completes successfully sessionkey the session key to use in all subsequent web service operations the field value is null when the disconnect web method completes successfully exceptionreason contains exception information, if the application throws an exception when running this web method if the disconnect web method completes successfully, the application removes the session key exceptions if there is an error during the disconnect web method operation (either during the authentication or authorization phases), the server throws a soap exception and the web services client must handle the exception the following table lists the exceptions that can be encountered when executing the disconnect web method soap exception explanation action sessionnotfound if the passed session key is not present or is invalid ensure that the session key is valid and present at the server
