The GetLicense function retrieves the generated license. Examples of a request and response for GetLicense are given below.
Note that the response for GetLicense will contain a license string if successful or an error message if unsuccessful. See Return Codes for more information about error messages.
Example request for GetLicense
No Format |
---|
<?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ns1="http://license.x-formation.com/soap/type/enduser/version/1"> <SOAP-ENV:Body SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> <ns1:GetLicense> <activationKey>9EFJK-TVJM0-MCDET-EZKXJ</activationKey> <hostid>HOSTNAME=my_hostname</hostid> </ns1:GetLicense> </SOAP-ENV:Body> </SOAP-ENV:Envelope> |
Example response from GetLicense
No Format |
---|
<?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ns1="http://license.x-formation.com/soap/type/enduser/version/1"> <SOAP-ENV:Body SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> <ns1:GetLicenseResponse> <return> <result_code>0</result_code> <result_string>license string</result_string> </return> </ns1:GetLicenseResponse> </SOAP-ENV:Body> </SOAP-ENV:Envelope> |