Connects to the License Server and updates the status of an order. 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:
- Set the AdminEncryptionKey property
C#: bool UpdateOrderStatus (string webServiceUrl, string orderID, int orderStatus, out string response)
Parameters
webServiceUrl - URL to the QLM License Server.
orderID - ID of the order
orderStatus - status of the order to set
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>Order status updated successfully.</result>
</QuickLicenseManager>
In the event of an error, the XML fragments returns:
<?xml version='1.0' encoding='UTF-8'?>
<QuickLicenseManager>
<error>The order id is not valid</error>
</QuickLicenseManager>
Return
Boolean indicating whether the operation was successful.
Example:
QlmLicense license = new QlmLicense ();
license.DefineProduct(1, "Demo", 1, 0, "DemoKey", "{24EAA3C1-3DD7-40E0-AEA3-D20AA17A6005}");
string response = string.Empty;
bool stat = license.UpdateOrderStatus ("https://qlm3.net/qlmdemo/qlmLicenseServer/qlmservice.asmx", 1234, 2, out response);
Comments
0 comments
Article is closed for comments.