Personal tools

From HEXONET Wiki

Jump to: navigation, search

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 domain is not subject to a right of registration and an error is returned accordingly:

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-no-right-of-registration.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="2304">
            <msg>Object status prohibits operation</msg>
            <extValue>
                <value xmlns:epp="urn:ietf:params:xml:ns:epp-1.0">
                    <epp:undef/>
                </value>
                <reason>552 Object status does not allow for operation; right of registration does not exist for domain</reason>
            </extValue>
        </result>
        <trID>
            <clTRID>HEXONET-EPP-EXAMPLE</clTRID>
            <svTRID>RO-26558-1398929562907011</svTRID>
        </trID>
    </response>
</epp>