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

Compare with Current View Page History

Version 1 Next »

The information on this page refers to SOAP version 2, which added this function. SOAP version 1 does not include this function.

The DeactivateLicense function confirms that a request to remove a license from a host was successful. This function requires an activation key and a HostID. Examples of a request and response for DeactivateLicense are given below

Note that the response for DeactivateLicense will contain a license string if successful or an error message if unsuccessful. See Return Codes for more information about error messages.

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="https://license.x-formation.com/soap/type/enduser/version/2">
   <soapenv:Header/>
   <soapenv:Body>
      <ns:DeactivateLicense soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
         <activationKey xsi:type="xsd:string">9RTV8-YX2P3-E53Q8-1OAB6</activationKey>
         <hostid xsi:type="xsd:string">not_specified</hostid>
      </ns:DeactivateLicense>
   </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="https://license.x-formation.com/soap/type/enduser/version/2" 
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:DeactivateLicenseResponse>
         <return xsi:type="ns1:Soap_Response">
            <result_code xsi:type="xsd:int">0</result_code>
            <result_string xsi:nil="true"/>
         </return>
      </ns1:DeactivateLicenseResponse>
   </SOAP-ENV:Body>
</SOAP-ENV:Envelope>
  • No labels