API Reference

GetServerProperty

Description

Gets the value of a server property.

 string GetServerProperty (string webServiceUrl, 
                           string property, 
                           out string response)


Parameters

ParameterTypeDescription
webServiceUrlstringURL to the QLM License Server
propertystringthe name of the property to retrieve
responseout stringXML fragment containing the result of the call.

Response XML format

Returns the value of the userData1 field.

<?xml version='1.0' encoding='UTF-8'?>
<QuickLicenseManager>
<result>Successfully executed.</result>
</QuickLicenseManager>

Example error response

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>

Return

TypeDescription
stringthe value of the property.

Remarks

Use ParseResults to interpret the results of the call and load the returned data into an ILicenseInfo object.

ILicenseInfo li = new LicenseInfo();
string message = string.Empty;
if (lv.QlmLicenseObject.ParseResults(response, ref li, ref message))
{
  // The operation  was successful	
}
else
{
  // The operation failed
}