UpdateLicenseKey

Description

Updates a license key with another license key.

Note that to call this function, you must:

  • Set the AdminEncryptionKey
bool UpdateLicenseKey (string webServiceUrl, string currentKey, 
                       string newKey, out string response)

Parameters

ParameterTypeDescription
webServiceUrlstringURL to the QLM License Server.
currentKeystringthe current activation key
newKeystringthe new activation key
responsestringXML fragment containing the result of the call

Return

TypeDescription
boolreturns true if the operation succeeded; false otherwise.

Response XML format

<?xml version='1.0' encoding='UTF-8'?>
<QuickLicenseManager>
<result>Successfully updated license information for ActivationKey=XYZ.</result>
</QuickLicenseManager>

Example error response

<?xml version='1.0' encoding='UTF-8'?>
<QuickLicenseManager>
<error>Details about the error</error>
</QuickLicenseManager>

Remarks

Use ParseResults to interpret the results of the call and load the returned data into an ILicenseInfo object.

ILicenseInfo li = new LicenseInfo();
string message = string.Empty;
if (lv.QlmLicenseObject.ParseResults(response, ref li, ref message))
{
  // The operation  was successful	
}
else
{
  // The operation failed
}