Creates an activation key with an expiry date over the internet. To use a proxy server, you must set the UseProxyServer, ProxyUser, ProxyDomain and ProxyPassword properties prior to calling this function.
Note that to call this function, you must:
- Enable the Server Property enableCreateActivationKey
- Set the AdminEncryptionKey
- Call DefineProduct
C#: void CreateActivationKeyWithExpiryDateEx7(string webServiceUrl, string email, int[] features, int numKeysToCreate, int numSeats, int numFloatingSeats, bool useMultipleActivationsKey, string qlmVersion, string vendor, string userData1, string affiliateID, DateTime expiryDate, int expiryDuration, bool maintenance, bool generic, ELicenseModel licenseModel, string comment, EOrderStatus orderStatus, string productProperties, out string response)
Parameters
webServiceUrl - URL to the QLM License Server.
email - email address to associate to the license key - may be empty
features - 4 element array of features. Each element in the array represents a feature set and the value of each element is the OR'ed value of all the enabled features in this feature set. For example:
int[] features = new features[4];
features[0] = 1 + 2 + 4; // In feature set 1, Feature 1, Feature 2 and Feature 4 are enabled
features[1] = 1 + 4; // In feature set 2, Feature 1 and Feature 4 are enabled
features[2] = 2 + 4 + 8; // In feature set 3, Feature 2, Feature 4 and Feature 8 are enabled
features[3] = 0; // In feature set 4, no features are enabled
numKeysToCreate - the number of licenses to create. Use this option to create large batches of license keys.
numSeats- the number of licenses to embed in the key. This controls how many activations are allowed per key.
numFloatingSeats- the number of floating seats for concurrent licensing (requires QLM Enterprise).
useMultipleActivationsKey - if set to true and quantity > 1, one license key will be generated for all required licenses. The number of licenses will be embedded in the license key
qlmVersion - the version of the QLM Engine
vendor - the eCommerce vendor to use when generating the key
userData1 - user data to associate to this license
affiliateID - ID of affiliate
expiryDate - Expiry date of the key. Set this value to DateTime.MinValue to not set an expiry date.
expiryDuration - Expiry duration of the key. Set this value to -1 to not set an expiry duration.
maintenance - set to true to enable the maintenance plan for this license
generic - set to true to create a generic license key. Generic license keys are designed for enterprise customers who purchase hundreds of licenses and do not want to have to activate licenses on every single computer. They activate a single license and get back a Generic Computer Key. Then on every other computer in the organization, they use the Generic Computer Key.
licenseModel - set the one of the allowed values: permanent | trial | subscription
comment - comment to be added to the license record
orderStatus - set the order status of the license to one of the allowed values: EInProgress | EComplete | EUpgraded | EReleased
productProperties: xml string reprensenting the product properties to set. The xml string can be created by calling IQlmProductProperties.Serialize.
response - XML fragment containing the result of the call. The Xml fragment schema is as follows:
<?xml version='1.0' encoding='UTF-8'?>
<QuickLicenseManager>
<keys>A062E-9D0CC-6DC80-0D6A0-E0701-000A0;A062E-9D0CC-6DC80-0D6A0-E0701-000A0</keys>
In the event of an error, the XML fragments returns:
</QuickLicenseManager>
<?xml version='1.0' encoding='UTF-8'?>
<QuickLicenseManager>
<error>Details about the error</error>
</QuickLicenseManager>
Comments
0 comments
Please sign in to leave a comment.