Versions Compared

Key

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

The information on this page refers to SOAP version 21. This function replaced FindLicenseByExpirationDate. If you are using SOAP version 1, see the SOAP version 1 documentation. 
has been replaced in SOAP version 2 with the function FindLicenseByExpirationDateBetween.

The FindLicenseByExpirationDate function The FindLicenseByExpirationDateBetween function is used to find all licenses that have an expiration date that is earlier than the date specified in this function.

This function requires a login token, which is obtained using the Login function. This function also uses an offset and an expiration date in the format YYYY-MM-DD. For example, if you have three licenses that expire on 20112015-05-26, 20112015-09-10, and 20122015-12-02, and you specify an expiration date of 20112015-09-10 in this function, the first two licenses will be returned.

...

The response is of the type Soap_Response_List_License, with result_array of type ArrayOfSoap_License.

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="https://license.x-formation.com/soap/type/vendor/version/21">
   <soapenv:Header/>
   <soapenv:Body>
      <ns:FindLicenseByExpirationDateBetweenFindLicenseByExpirationDate soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
         <token xsi:type="xsd:string">648acb1cb0c129f0c143f25a76521c429a06ef2b<>292c1bb77d6faf51049dc99e3c3e10d624791052</token>
         <startDate<expirationDate xsi:type="xsd:string">2016>2021-0112-01<07</startDate>expirationDate>
         <endDate xsi:type="xsd:string">2020-01-01</endDate>
         <offset xsi:type="xsd:int">0</offset>
      </ns:FindLicenseByExpirationDateBetween>FindLicenseByExpirationDate>
   </soapenv:Body>
</soapenv:Envelope>

Example response

No Format

<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/vendor/version/21"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
   <SOAP-ENV:Body>
      <ns1:FindLicenseByExpirationDateBetweenResponse>FindLicenseByExpirationDateResponse>
         <return xsi:type="ns1:Soap_Response_List_License">
            <result_array SOAP-ENC:arrayType="ns1:Soap_License[1]" xsi:type="ns1:ArrayOfSoap_License">
               <item xsi:type="ns1:Soap_License">
                  <id xsi:type="xsd:int">13<>8</id>
                  <activation_key xsi:type="xsd:string">XSFGS>58ARD-270T9JETMQ-4PWEI7Z4NQ-4TE4Q<WMOEL</activation_key>
                  <license_text xsi:type="xsd:string">#>
# This license is generated using X-Formation License Activation Center
# Generation Time: 20122011-0711-1623 1205:2242:2604 GMT
# Activation Key: XSFGS58ARD-270T9JETMQ-4PWEI7Z4NQ-4TE4QWMOEL

FEATURE f2f1
{
VENDOR = XFORMATION
VERSION VERSION=1.0 END=2017-06-27 LICENSEE="11"
KEY=H1r8mwNJ1bpUD7kOFUm6NQrF69eXWvPHCTTJpO2mZK96GI2FqG5TmumxXxXdXWD]NWwr9tE[vwie0SLJSfJ6vR1aERFicYuWBl8b \
	RE1Umv4GlfN6ENZnkS[Wnuj6B57hBB3AuoAQLEXLtnMFZSDwSXyR1DX6OcwvBgHhRHA3LitmpBi69cRBEa3KjX59I[bNb]e3cXlw \
	PFMpSV8sc4SaLLdeMfhu]7Wrh12brVQTMxNMIbN6KBuxTeq26SwO1wYxr6caoPa6eJtM5JdzWesfmlAR3kfl7MT6eTz[mTPrA9BK \
	FgY63pMWhAEVFvpEBtPG]jiOIQM5sxX64UnR7XPWdSPt4hL0TegFz7UDzVxmynNDNKqdbgRJNkmPIqY9vUV1k0mcmuv]6odZjkan \
	ae590YbeIpL1AJ2fCB9YmWxdkSqg[frdWULTXustSgfViWZ6KUhd1o[sKzmnrSfTmFQMlEqFAXsg 2.51
END = 2011-12-08
KEY = lixSdQyvYqNHqXrV2EeJC[zfUKD1RCI6jvMmqSKDuFWnnpqV34Aonef0TbnuxzdbD5jc5h \
n72aJG2MOOCeApu1UFX1tNlTJZRa8bkoHCwKUQ3z[QbwBKuMHavXQD0n6BEssNRBRyJXRR \
RJct752lmOx[JbRq5S7FD1Qoba2XyE1cNsjkJ9HtLZn[CYy]NfASgKRkdrm2JVnnrM8IUM \
t8PWH9P]0PeYZatGsjdfhkjsdhfkljsdhfjksdhfjsds9r6rcQEYbK1IshBrBrdehp7OZ[maRgAh2 \
8RgvWxc069mfXaDeoxbeJ2up0VYeRHsbop5il1X8bm3wce[LE[P892T5Qr[GWhdWsgoA[9 \
C5zSLUDRF9L6JItz0o7pix8hHN[zoHxnLoJQlLr[96]MEXkgWOh0qBwEDG3I6aIKbvstXR \
NlGzeQb0s]deqME]kdqE2e8NY6FMpkITjcZzFQ80Z316tyQEqe7ejMcJ
}</license_text>
                  <activation_time xsi:type="xsd:string">2012>2011-0711-1623 1207:2242:26<04</activation_time>
                  <expiration_date xsi:type="xsd:string">2017>2011-0612-27<08</expiration_date>
                  <HostidValues SOAP-ENC:arrayType="ns1:Soap_HostidValue[1]" xsi:type="ns1:ArrayOfSoap_HostidValue">
                     <item xsi:type="ns1:Soap_HostidValue">
                        <name xsi:type="xsd:string">Not Locked</name>
                        <value xsi:type="xsd:string"/>
                     </item>
                  </HostidValues>
               </item>
            </result_array>
            <result_code xsi:type="xsd:int">0</result_code>
            <result_string xsi:nil="true"/>
         </return>
      </ns1:FindLicenseByExpirationDateBetweenResponse>FindLicenseByExpirationDateResponse>
   </SOAP-ENV:Body>
</SOAP-ENV:Envelope>