invalidateToken()

Web-method to deactivate a previously issued token. This web-method should be the last method called in a session. Any attempt to use invalidated token after this method will fail with "Inactive token" result.

Call example:

//
string result = invalidateToken(
    string securityToken, 
    string userId, 
    string password, 
    string outputFormat);
//

Input parameters:

securityToken(string)(required)Token to extend. This must be one you previously got from getSecurityToken() method
userId(string)(required)Login name associated with your license
password(string)(required)Password to acess SageBridge API
outputFormat(string)(optional)Defines a serialization method for APIResponse. Possible values: "XML", "JSON"

Response:

XML or JSON string representing APIResponse structure.

APIResponse payload element may be encrypted and delivered as Base64 string.

Possible return codes:

  • 0 - Success. Description may vary.
  • -1 - General error. Description attribute will show more details about an error.

Notes:

  • For security reasons this method will not return any credentials or license related errors

See Also:

getSecurityToken() , invalidateToken() , keepTokenAlive() , APIResponse data