ActivateLicense Method

The ActivateLicense method gets the License Key from the account and increments the activation count by one.

Syntax

C#

public ActivateLicenseRes ActivateLicense(string ActivationKey, string RegistrationID)

 

XML

<?xml version="1.0" encoding="utf-8"?>

<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">

  <soap:Body>

    <ActivateLicense xmlns="http://tempuri.org/">

      <ActivationKey>string</ActivationKey>

      <RegistrationID>string</RegistrationID>

    </ActivateLicense>

  </soap:Body>

</soap:Envelope>

Parameters

ActivationKey

The Activation Key to access the account.

RegistrationID

The Registraion ID to get the License Key.

Return Value

C#

public struct ActivateLicenseRes

{

    public int ErrorCode;

    public string ErrorMessage;

    public string LicenseKey;

}

 

XML

<?xml version="1.0" encoding="utf-8"?>

<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">

  <soap:Body>

    <ActivateLicenseResponse xmlns="http://tempuri.org/">

      <ActivateLicenseResult>

        <ErrorCode>int</ErrorCode>

        <ErrorMessage>string</ErrorMessage>

        <LicenseKey>string</LicenseKey>

      </ActivateLicenseResult>

    </ActivateLicenseResponse>

  </soap:Body>

</soap:Envelope>

 

ErrorCode

Returns 0 if success; otherwise, see the Error Code.

ErrorMessage

Returns error message if the ErrorCode is not 0.

LicenseKey

Returns the License Key.

 

See Also

DeactivateLicense