You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »


Function 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. The License Order gets a token of the logged-in LAC administrator, 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.
Example request:
<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>
Example response:
<SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://www.lac2.pl:8080/soap/type/vendor/version/1" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/">
<SOAP-ENV:Body>
<ns1:GetLicenseOrderTemplateResponse>
<return xsi:type="ns1:Soap_Object_LicenseOrder">
<result_object xsi:type="ns1:Soap_LicenseOrder">
<customer_id xsi:type="xsd:int">1</customer_id>
<product_template_id xsi:type="xsd:int">2</product_template_id>
<activation_key xsi:nil="true"/>
<license_type xsi:type="xsd:string">local</license_type>
<licensee_type xsi:type="xsd:string">not_specified</licensee_type>
<licensee xsi:nil="true"/>
<hostid_match_rate xsi:type="xsd:int">100</hostid_match_rate>
<description xsi:nil="true"/>
<Hostids SOAP-ENC:arrayType="ns1:Soap_Hostid[1]" xsi:type="ns1:ArrayOfSoap_Hostid">
<item xsi:type="ns1:Soap_Hostid">
<name xsi:type="xsd:string">Not Locked</name>
<min_amount xsi:type="xsd:int">1</min_amount>
<max_amount xsi:type="xsd:int">1</max_amount>
</item>
</Hostids>
<Features SOAP-ENC:arrayType="ns1:Soap_Feature[1]" xsi:type="ns1:ArrayOfSoap_Feature">
<item xsi:type="ns1:Soap_Feature">
<name xsi:type="xsd:string">f1</name>
<version xsi:type="xsd:string">1</version>
<expiration_type xsi:type="xsd:string">no_expiration</expiration_type>
<expiration_date xsi:nil="true"/>
<additional_settings xsi:nil="true"/>
<enabled xsi:type="xsd:boolean">true</enabled>
<days_from_activation xsi:nil="true"/>
<count xsi:nil="true"/>
</item>
</Features>
</result_object>
<result_code xsi:type="xsd:int">0</result_code>
<result_string xsi:nil="true"/>
</return>
</ns1:GetLicenseOrderTemplateResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

  • No labels