Description

This method will add new web license.

Definition (VB.NET)

<WebMethod()> _
Public Function AddWebLicense(ProductID As Integer, SerialNumber As String, SiteCode As String, MID As String, Note As String) As Result

Security

No authorization is required for this method.

Parameters

Name Type Description
ProductID Integer Product ID value
SerialNumber String Serial number
SiteCode String Site code value
MID String Machine ID (MID) value
Note String License note (max 30 characters long)

Return values

In case of success:

- Result.Status is set to STATUS_SUCCESS

- Result.ActivationCode is set to valid activation code.

- Result.WebLicenseID is set to ID of new web license

In case of error appropriate error status code is returned.

Notes

- Be sure to save new WebLicenseID value so you can use it when required with other methods for handling of web licenses.

- New activation code will contain current features and custom counters as set in Program settings.

- If limited license is enabled in program settings, web license expiration date will be set based on default validity period and fixed date limitation settings.