XML License File Service
The XML License File Service provides methods for obtaining XML-formatted license files.
More specifically, this is the web service used by the Protection PLUS 5 SDK libraries to obtain encrypted and digitally signed xml license files.
For SOLO Server Shared URL, this can be reached at https://secure.softwarekey.com/solo/webservices/XmlLicenseFileService.asmx
- When using SOLO Server Shared / Custom URL, replace secure with your custom subdomain.
- When using SOLO Server Dedicated URL, replace secure.softwarekey.com with your domain.
- When using SOLO Server Self-Hosted, replace secure.softwarekey.com/solo in the URL with the path to your SOLO Server instance.
Please contact us if you need assistance determining the correct URL.
Each web method in this web service is documented by a series of documentation files named after the web method as follows:
- MethodNameInput.xml - Uncommented xml file with input xml structure.
- MethodNameInputDetails.xml - Commented xml file with input xml structure and comments on each input element.
- MethodNameInput.xsd - XSD schema file defining the input xml structure.
- MethodNameOutput.xml - Uncommented xml file with output xml structure.
- MethodNameOutputDetails.xml - Commented xml file with output xml structure and comments on each output element.
- MethodNameOutput.xsd - XSD schema file defining the input xml structure.
Every request accepts the optional RequestVersion element described in Request Versions, which lists what a client must implement before it declares a given version.
The SoftwareKey System offers an assortment of libraries which provide APIs that simplify the invocation of these web services from your application. This collection of API libraries includes:
- The Protection PLUS 5 SDK libraries, including the PLUSManaged library (for .NET applications), and the PLUSNative library (for native applications).
- The Automation Client library, which is included with Protection PLUS 4 SDK for native/unmanaged applications.
- The SwkClientServices2005 library, which is included with Protection PLUS 4 SDK for .NET/managed applications.
Please refer to the applicable product manuals and sample projects for more information on each library/API.
GetLicenseFile
This web method is used to get a license file for a given Installation (issued at the time of activation).
Input
| Parameter | Data Type | Required/Optional | Description |
|---|---|---|---|
| EncryptionKeyID | string | Required |
The Encryption Key ID used for encrypting, decrypting, digitally signing, and verifying requests and responses. This is included in the Encryption Envelope, which may be retrieved by clicking the Configure/Products menu and clicking Actions/View Encryption Key Data. |
| RequestVersion | int | Optional |
The request version the client declares it implements. Omit this element unless your client implements a later request version, and do not copy the value shown in the sample without implementing it. Declaring a version commits the client in both directions: it tells the server how this request was signed, and it tells the server the client can handle the response format that version defines, including any license file the response delivers. A request signed differently from the version it declares is rejected with a verification failure, and a client that cannot read the response format it asked for receives a response it cannot verify. When supplied it must be a positive integer. The server is lenient with bad input: an omitted, empty, non-numeric or less than 1 value is read as version 1. |
| ClientInfo | Optional |
Advisory details about the calling client library. This element is informational only and never changes how the request is processed. It can contain the child elements LibraryName, LibraryVersion and Platform, each of which is also optional and is read as an empty value when omitted. |
|
| InstallationID | string | Required | Installation ID for which the License File is needed. |
| ProductVersion | string | Optional | Product Version Number. This should be formatted like NNNNN.NNNNN.NNNNN.NNNNN, where each N represents a digit (leading zeroes are not required). |
Output
| Parameter | Data Type | Description |
|---|---|---|
| ResultCode | int |
Can take the following values
|
| ErrorMessage | string | Detailed error message for the ResultCode. Only returned in error conditions (ResultCode non zero). |
| License | string | The contents of the XML License File. When encryption is being used for this file, it will be in its encrypted form here. |
The documentation files for this web method are as follows: