Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Function The GetLicenseOrderTemplate function is used to get a complete license order object with pre-defined settings taken from a Product Template. Some fields in the license order can initially be empty if they are empty in the Product Template. The License Order contains all information about HostIDs and Features configured for the product in the Product Template.

This function requires a The License Order gets a token of the logged-in LAC administrator token, which is obtained using the Login function. This function also uses the product template ID , and the customer ID for which the license order template should be generated. After changing data and filling out all necessary fields, you can add the complete license order using the AddLicenseOrder method.

Return values

On failure, the result string contains an error message. See Return codes for further information on error messages.

Example request:

No Format
<soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:ns="http://www.lac2.pl:8080/soap/type/vendor/version/1">
   <soapenv:Header/>
   <soapenv:Body>
      <ns:GetLicenseOrderTemplate soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
         <token xsi:type="xsd:string">bf1a02f2554e71b6867dae307956a2e4fa1abe1e</token>
         <productTemplateId xsi:type="xsd:int">1</productTemplateId>
         <customerId xsi:type="xsd:int">1</customerId>
      </ns:GetLicenseOrderTemplate>
   </soapenv:Body>
</soapenv:Envelope>

...