Update 7000 licenses
Hello,
We created 7k licenses using Quick License Manager graphical tool. But now we need to change number of activations for each of them.
I found no convenient way of doing it using graphical tool. (If it can be done – that suit as and the second part of the question is irrelevant.) So we decided to create simple console application which load list of keys from a text file and update number of activations.
Is it possible to do that using C# API?
I found a function:
public bool UpdateLicenseInfo(string webServiceUrl, string activationKey, string licenseData, out string response);
activationKey and licenseData parameters are strings so I assumed they should contain serialized is some way information about license, but I failed to find in documentation format of this data.
To summarize everything:
- What is the best way to update 7000 licenses?
- If an idea about C# application is correct which functions and how should I use in order to update licenses?
-
Official comment
Hi Volodymyr
Yes, it is possible to do this in C# using the UpdateLicenseInfo.
This is documented in the online help. I included the section below.Regards
JohnUpdateLicenseInfo
Updates the data associated with a license key. To use a proxy server, you must set the UseProxyServer, ProxyUser, ProxyDomain and ProxyPassword properties prior to calling this function.
C#: bool UpdateLicenseInfo (string webServiceUrl, string activationKey, string licenseData, out string response)
Parameters
webServiceUrl - URL to the QLM Web service.
activationKey- the license key to udpate
licenseData - XML fragment containing the fields to update. The XML fragment should be of the form:
<licenseArguments
field1=" 'value'
field2=" 'value' "
</licenseArguments>
where field1 is the name of a field in the LicenseKeys table. For fields of type date, you should use the following date/time format: yyyy-MM-dd HH:mm:ss
Example:
<licenseArguments
Comment= " 'my comment' "
UserData1=" 'my user data' "
OrderDate=" '2008-3-12 21:14:58' "
</licenseArguments>
response - XML fragment containing the result of the call. The Xml fragment schema is as follows:
<?xml version='1.0' encoding='UTF-8'?>
<QuickLicenseManager>
<result>Successfully updated license information for ActivationKey=XYZ.</result>
</QuickLicenseManager>In the event of an error, the XML fragments returns:
<?xml version='1.0' encoding='UTF-8'?>
<QuickLicenseManager>
<error>Details about the error</error>
</QuickLicenseManager>Soraco Technologies
support@soraco.coComment actions
Please sign in to leave a comment.
Comments
1 comment