Ends the session of the logged-in user.
This call ends the session for the logged-in user issuing the call. No arguments are needed.
To end one or more sessions started by someone other than the logged-in user, see invalidateSessions().
public void logout() { try { connection.logout(); System.out.println( "Logged out" ); } catch (ConnectionException ce) { ce.printStackTrace(); } }
public void Logout() { try { binding.Logout(); } catch (Exception e) { Console.WriteLine("Unexpected error:\n\n" + e.Message); } }
This call uses no arguments. It ends the session for the logged-in user issuing the call, so no arguments are needed. The logged-in user is identified by the sessionId specified in the SessionHeader for this call.
Void is returned. Because failure of the call means that the session has already been logged out, no results are needed. Any unexpected error, such as system unavailability, throws an error that should be handled by your client application.