From HEXONET Wiki
(Created page with "{{Sidebar}}__NOTOC__ <h4>EPP example of a check if a registrant is eligible to register a 2nd. level .UK domain name that is subject to a right of registration of a 3rd. level...") |
|||
Line 58: | Line 58: | ||
</pre> | </pre> | ||
− | <h4>EPP example of a check if a registrant is eligible to register a 2nd. level .UK domain name that is subject to a right of registration of a 3rd. level .UK domain name. In this example the registrant is eligible:</h4> | + | <h4>EPP example of a check if a registrant is eligible to register a 2nd. level .UK domain name that is subject to a right of registration of a 3rd. level .UK domain name. In this example the registrant is not eligible (the email address is not matching):</h4> |
COMMAND | COMMAND | ||
<pre> | <pre> | ||
+ | <?xml version="1.0" encoding="UTF-8" standalone="no"?> | ||
+ | <epp xmlns="urn:ietf:params:xml:ns:epp-1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:ietf:params:xml:ns:epp-1.0 epp-1.0.xsd"> | ||
+ | <command> | ||
+ | <check> | ||
+ | <domain:check xmlns:domain="urn:ietf:params:xml:ns:domain-1.0" xsi:schemaLocation="urn:ietf:params:xml:ns:domain-1.0 domain-1.0.xsd"> | ||
+ | <domain:name>adriana-1api-de.uk</domain:name> | ||
+ | </domain:check> | ||
+ | </check> | ||
+ | <extension> | ||
+ | <keyvalue:extension xmlns:keyvalue='http://schema.ispapi.net/epp/xml/keyvalue-1.0'> | ||
+ | <keyvalue:kv key='COMMAND' value='UK_CheckRightOfRegistration' /> | ||
+ | <keyvalue:kv key='NAME' value='Mary Smith' /> | ||
+ | <keyvalue:kv key='ORGANIZATION' value='Simple Registrant-1API-DE' /> | ||
+ | <keyvalue:kv key='STREET' value='2 Test Street' /> | ||
+ | <keyvalue:kv key='CITY' value='Test City' /> | ||
+ | <keyvalue:kv key='STATE' value='Testshire' /> | ||
+ | <keyvalue:kv key='ZIP' value='TE57 1NG' /> | ||
+ | <keyvalue:kv key='COUNTRY' value='GB' /> | ||
+ | <keyvalue:kv key='EMAIL' value='[email protected]' /> | ||
+ | </keyvalue:extension> | ||
+ | </extension> | ||
+ | <clTRID>HEXONET-EPP-EXAMPLE</clTRID> | ||
+ | </command> | ||
+ | </epp> | ||
</pre> | </pre> | ||
Line 67: | Line 91: | ||
RESPONSE | RESPONSE | ||
<pre> | <pre> | ||
+ | <?xml version="1.0" encoding="UTF-8" standalone="no"?> | ||
+ | <epp xmlns="urn:ietf:params:xml:ns:epp-1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:ietf:params:xml:ns:epp-1.0 epp-1.0.xsd"> | ||
+ | <response> | ||
+ | <result code="1000"> | ||
+ | <msg>Command completed successfully</msg> | ||
+ | </result> | ||
+ | <resData> | ||
+ | <domain:chkData xmlns:domain="urn:ietf:params:xml:ns:domain-1.0" xsi:schemaLocation="urn:ietf:params:xml:ns:domain-1.0 domain-1.0.xsd"> | ||
+ | <domain:cd> | ||
+ | <domain:name avail="0">adriana-1api-de.uk</domain:name> | ||
+ | <domain:reason>EMAIL</domain:reason> | ||
+ | </domain:cd> | ||
+ | </domain:chkData> | ||
+ | </resData> | ||
+ | <extension> | ||
+ | <keyvalue:extension xmlns:keyvalue="http://schema.ispapi.net/epp/xml/keyvalue-1.0" xsi:schemaLocation="http://schema.ispapi.net/epp/xml/keyvalue-1.0 keyvalue-1.0.xsd"> | ||
+ | <keyvalue:kv key="X-UK-RIGHT-OF-REGISTRATION-DOMAIN" value="adriana-1api-de.co.uk"/> | ||
+ | </keyvalue:extension> | ||
+ | </extension> | ||
+ | <trID> | ||
+ | <clTRID>HEXONET-EPP-EXAMPLE</clTRID> | ||
+ | <svTRID>RO-4228-1398928003359996</svTRID> | ||
+ | </trID> | ||
+ | </response> | ||
+ | </epp> | ||
</pre> | </pre> | ||
Revision as of 07:07, 1 May 2014
EPP example of a check if a registrant is eligible to register a 2nd. level .UK domain name that is subject to a right of registration of a 3rd. level .UK domain name. In this example the registrant is eligible:
COMMAND
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <epp xmlns="urn:ietf:params:xml:ns:epp-1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:ietf:params:xml:ns:epp-1.0 epp-1.0.xsd"> <command> <check> <domain:check xmlns:domain="urn:ietf:params:xml:ns:domain-1.0" xsi:schemaLocation="urn:ietf:params:xml:ns:domain-1.0 domain-1.0.xsd"> <domain:name>adriana-1api-de.uk</domain:name> </domain:check> </check> <extension> <keyvalue:extension xmlns:keyvalue='http://schema.ispapi.net/epp/xml/keyvalue-1.0'> <keyvalue:kv key='COMMAND' value='UK_CheckRightOfRegistration' /> <keyvalue:kv key='NAME' value='Mary Smith' /> <keyvalue:kv key='ORGANIZATION' value='Simple Registrant-1API-DE' /> <keyvalue:kv key='STREET' value='2 Test Street' /> <keyvalue:kv key='CITY' value='Test City' /> <keyvalue:kv key='STATE' value='Testshire' /> <keyvalue:kv key='ZIP' value='TE57 1NG' /> <keyvalue:kv key='COUNTRY' value='GB' /> <keyvalue:kv key='EMAIL' value='[email protected]' /> </keyvalue:extension> </extension> <clTRID>HEXONET-EPP-EXAMPLE</clTRID> </command> </epp>
RESPONSE
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <epp xmlns="urn:ietf:params:xml:ns:epp-1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:ietf:params:xml:ns:epp-1.0 epp-1.0.xsd"> <response> <result code="1000"> <msg>Command completed successfully</msg> </result> <resData> <domain:chkData xmlns:domain="urn:ietf:params:xml:ns:domain-1.0" xsi:schemaLocation="urn:ietf:params:xml:ns:domain-1.0 domain-1.0.xsd"> <domain:cd> <domain:name avail="1">adriana-1api-de.uk</domain:name> </domain:cd> </domain:chkData> </resData> <extension> <keyvalue:extension xmlns:keyvalue="http://schema.ispapi.net/epp/xml/keyvalue-1.0" xsi:schemaLocation="http://schema.ispapi.net/epp/xml/keyvalue-1.0 keyvalue-1.0.xsd"> <keyvalue:kv key="X-UK-RIGHT-OF-REGISTRATION-DOMAIN" value="adriana-1api-de.co.uk"/> </keyvalue:extension> </extension> <trID> <clTRID>HEXONET-EPP-EXAMPLE</clTRID> <svTRID>RO-4228-1398927525581441</svTRID> </trID> </response> </epp>
EPP example of a check if a registrant is eligible to register a 2nd. level .UK domain name that is subject to a right of registration of a 3rd. level .UK domain name. In this example the registrant is not eligible (the email address is not matching):
COMMAND
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <epp xmlns="urn:ietf:params:xml:ns:epp-1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:ietf:params:xml:ns:epp-1.0 epp-1.0.xsd"> <command> <check> <domain:check xmlns:domain="urn:ietf:params:xml:ns:domain-1.0" xsi:schemaLocation="urn:ietf:params:xml:ns:domain-1.0 domain-1.0.xsd"> <domain:name>adriana-1api-de.uk</domain:name> </domain:check> </check> <extension> <keyvalue:extension xmlns:keyvalue='http://schema.ispapi.net/epp/xml/keyvalue-1.0'> <keyvalue:kv key='COMMAND' value='UK_CheckRightOfRegistration' /> <keyvalue:kv key='NAME' value='Mary Smith' /> <keyvalue:kv key='ORGANIZATION' value='Simple Registrant-1API-DE' /> <keyvalue:kv key='STREET' value='2 Test Street' /> <keyvalue:kv key='CITY' value='Test City' /> <keyvalue:kv key='STATE' value='Testshire' /> <keyvalue:kv key='ZIP' value='TE57 1NG' /> <keyvalue:kv key='COUNTRY' value='GB' /> <keyvalue:kv key='EMAIL' value='[email protected]' /> </keyvalue:extension> </extension> <clTRID>HEXONET-EPP-EXAMPLE</clTRID> </command> </epp>
RESPONSE
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <epp xmlns="urn:ietf:params:xml:ns:epp-1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:ietf:params:xml:ns:epp-1.0 epp-1.0.xsd"> <response> <result code="1000"> <msg>Command completed successfully</msg> </result> <resData> <domain:chkData xmlns:domain="urn:ietf:params:xml:ns:domain-1.0" xsi:schemaLocation="urn:ietf:params:xml:ns:domain-1.0 domain-1.0.xsd"> <domain:cd> <domain:name avail="0">adriana-1api-de.uk</domain:name> <domain:reason>EMAIL</domain:reason> </domain:cd> </domain:chkData> </resData> <extension> <keyvalue:extension xmlns:keyvalue="http://schema.ispapi.net/epp/xml/keyvalue-1.0" xsi:schemaLocation="http://schema.ispapi.net/epp/xml/keyvalue-1.0 keyvalue-1.0.xsd"> <keyvalue:kv key="X-UK-RIGHT-OF-REGISTRATION-DOMAIN" value="adriana-1api-de.co.uk"/> </keyvalue:extension> </extension> <trID> <clTRID>HEXONET-EPP-EXAMPLE</clTRID> <svTRID>RO-4228-1398928003359996</svTRID> </trID> </response> </epp>
EPP example of a check if a registrant is eligible to register a 2nd. level .UK domain name that is subject to a right of registration of a 3rd. level .UK domain name. In this example the registrant is eligible:
COMMAND
RESPONSE