The CreateLicenseRequest function creates a license request and pushes it to generation. Examples of a request and response for CreateLicenseRequest are given below.

Note that the result string for CreateLicenseRequest will contain an error message if unsuccessful. See Return Codes for further information on error messages.

Example request for CreateLicenseRequest

<?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:CreateLicenseRequest>
   <activationKey>9EFJK-TVJM0-MCDET-EZKXJ</activationKey>
   <hostid>HOSTNAME=my_hostname</hostid>
  </ns1:CreateLicenseRequest>
 </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

Example response from CreateLicenseRequest

<?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:CreateLicenseRequestResponse>
   <return>
    <result_code>0</result_code>
    <result_string></result_string>
   </return>
  </ns1:CreateLicenseRequestResponse>
 </SOAP-ENV:Body>
</SOAP-ENV:Envelope>