Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Change validate() method to POST

...

Expand
titleSubsequent validate, secret matches
Code Block
titleRequest
GETPOST https://go.netlicensing.io/core/v2/rest/licensee/ITEST-DEMO/validate?licenseeSecret=c99c12016c357200771b21645be64157
Accept: application/xml
Content-Type: application/x-www-form-urlencoded

licenseeSecret=c99c12016c357200771b21645be64157
Code Block
titleResponse
languagexml
<netlicensing xmlns="http://netlicensing.labs64.com/schema/context" ttl="2016-11-26T12:43:44.052Z">
    <infos/>
    <items>
        <item type="ProductModuleValidation">
            <property name="productModuleNumber">MTEST-DEMO</property>
            <property name="evaluation">true</property>
            <property name="valid">true</property>
            <property name="productModuleName">Module licensed under Try &amp; Buy licensing model</property>
            <property name="evaluationExpires">2016-12-25T12:43:44.057Z</property>
            <property name="licensingModel">TryAndBuy</property>
        </item>
    </items>
</netlicensing>
Expand
titleSubsequent validate, secret mismatch
Code Block
titleRequest
GETPOST https://go.netlicensing.io/core/v2/rest/licensee/ITEST-DEMO/validate?licenseeSecret=WRONG_SECRET
Accept: application/xml
Content-Type: application/x-www-form-urlencoded

licenseeSecret=WRONG_SECRET
Code Block
titleResponse
languagexml
<netlicensing xmlns="http://netlicensing.labs64.com/schema/context" ttl="2016-11-26T13:01:25.753Z">
    <infos>
        <info id="licenseeSecretMismatch" type="error">Licensee secret mismatch</info>
    </infos>
    <items>
        <item type="ProductModuleValidation">
            <property name="productModuleNumber">MTEST-DEMO</property>
            <property name="evaluation">true</property>
            <property name="valid">false</property>
            <property name="productModuleName">Module licensed under Try &amp; Buy licensing model</property>
            <property name="evaluationExpires">2016-12-25T12:43:44.057Z</property>
            <property name="licensingModel">TryAndBuy</property>
        </item>
    </items>
</netlicensing>

...

Expand
titleFirst validate and Subsequent validate with matching Secret
Code Block
titleRequest
GETPOST https://go.netlicensing.io/core/v2/rest/licensee/ITEST-DEMO/validate?licenseeSecret=c99c12016c357200771b21645be64157
Accept: application/xml
Content-Type: application/x-www-form-urlencoded

licenseeSecret=c99c12016c357200771b21645be64157
Code Block
titleResponse
languagexml
 <netlicensing xmlns="http://netlicensing.labs64.com/schema/context" ttl="2016-11-26T13:05:59.255Z">
    <infos/>
    <items>
        <item type="ProductModuleValidation">
            <property name="productModuleNumber">MTEST-DEMO</property>
            <property name="evaluation">true</property>
            <property name="valid">true</property>
            <property name="productModuleName">Module licensed under Try &amp; Buy licensing model</property>
            <property name="evaluationExpires">2016-12-25T12:43:44.057Z</property>
            <property name="licensingModel">TryAndBuy</property>
        </item>
    </items>
</netlicensing>
Expand
titleSubsequent validate, secret mismatch
Code Block
titleRequest
GETPOST https://go.netlicensing.io/core/v2/rest/licensee/ITEST-DEMO/validate?licenseeSecret=WRONG_SECRET
Accept: application/xml
Content-Type: application/x-www-form-urlencoded

licenseeSecret=WRONG_SECRET
Code Block
titleResponse
languagexml
<netlicensing xmlns="http://netlicensing.labs64.com/schema/context" ttl="2016-11-26T13:01:25.753Z">
    <infos>
        <info id="licenseeSecretMismatch" type="error">Licensee secret mismatch</info>
    </infos>
    <items>
        <item type="ProductModuleValidation">
            <property name="productModuleNumber">MTEST-DEMO</property>
            <property name="evaluation">true</property>
            <property name="valid">false</property>
            <property name="productModuleName">Module licensed under Try &amp; Buy licensing model</property>
            <property name="evaluationExpires">2016-12-25T12:43:44.057Z</property>
            <property name="licensingModel">TryAndBuy</property>
        </item>
    </items>
</netlicensing>