SaveRegName Method

The SaveRegName method saves the registration name and organization to the account, which is used in case of the Shareware implementation.

 

When calling the ActivateLicense method, the registration name and organization in the account are encoded to a Registration ID, which will be used to check against the Registration ID parameter of the ActivateLicense method. If matched, the ActivateLicense method returns a valid License Key.

Syntax

C#

public SaveRegNameRes SaveRegName(string ActivationKey, string RegName, string RegOrg)

 

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>

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

      <ActivationKey>string</ActivationKey>

      <RegName>string</RegName>

      <RegOrg>string</RegOrg>

    </SaveRegName>

  </soap:Body>

</soap:Envelope>

Parameters

ActivationKey

The Activation Key to access the account.

RegName

The registration name to be saved to the account.

RegOrg

The registration organization to be saved to the account.

Return Value

C#

public struct SaveRegNameRes

{

    public int ErrorCode;

    public string ErrorMessage;

}

 

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>

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

      <SaveRegNameResult>

        <ErrorCode>int</ErrorCode>

        <ErrorMessage>string</ErrorMessage>

      </SaveRegNameResult>

    </SaveRegNameResponse>

  </soap:Body>

</soap:Envelope>

 

ErrorCode

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

ErrorMessage

Returns error message if the ErrorCode is not 0.

 

See Also

CheckRegName