Personal tools

From HEXONET Wiki

Jump to: navigation, search

If the registrant address is outside of the UK an address for service is required. This can be provided by creating a service contact handle with the desired service address using a standard <contact:create> command and assigning this contact handle as administrative contact of the domain using a standard <domain:create> or <domain:update> command. Any previously created contact handle with an address in the UK can be used as a service contact handle.

EPP example of the creation of a service contact handle:

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>
        <create>
            <contact:create xmlns:contact="urn:ietf:params:xml:ns:contact-1.0" xsi:schemaLocation="urn:ietf:params:xml:ns:contact-1.0 contact-1.0.xsd">
                <contact:id>SERVICE-C1</contact:id>
                <contact:postalInfo type="int">
                    <contact:name>John Doe</contact:name>
                    <contact:org>Example Inc.</contact:org>
                    <contact:addr>
                        <contact:street>123 Example Dr.</contact:street>
                        <contact:street>Suite 100</contact:street>
                        <contact:city>Oxford</contact:city>
                        <contact:sp>Oxfordshire</contact:sp>
                        <contact:pc>OX4 4DQ</contact:pc>
                        <contact:cc>GB</contact:cc>
                    </contact:addr>
                </contact:postalInfo>
                <contact:voice>+44.1234556789</contact:voice>
                <contact:fax>+44.1234556789</contact:fax>
                <contact:email>[email protected]</contact:email>
                <contact:authInfo>
                    <contact:pw>2fooBAR</contact:pw>
                </contact:authInfo>
            </contact:create>
        </create>
        <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>
            <contact:creData xmlns:contact="urn:ietf:params:xml:ns:contact-1.0" xsi:schemaLocation="urn:ietf:params:xml:ns:contact-1.0 contact-1.0.xsd">
                <contact:id>SERVICE-C1</contact:id>
                <contact:crDate>2014-05-01T08:25:12.0Z</contact:crDate>
            </contact:creData>
        </resData>
        <trID>
            <clTRID>HEXONET-EPP-EXAMPLE</clTRID>
            <svTRID>RW-4228-1398932712362119</svTRID>
        </trID>
    </response>
</epp>


EPP example of a .UK registration with a registrant address outside of the UK and use of a service contact:

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>
        <create>
            <domain:create 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>hexonet-epp-example-domain-with-service-contact.uk</domain:name>
                <domain:period unit="y">2</domain:period>
                <domain:ns>
                    <domain:hostObj>ns1.hexonet.net</domain:hostObj>
                    <domain:hostObj>ns2.hexonet.net</domain:hostObj>
                    <domain:hostObj>ns3.hexonet.net</domain:hostObj>
                </domain:ns>
                <domain:registrant>USER</domain:registrant>
                <domain:contact type="admin">SERVICE-C1</domain:contact>
                <domain:contact type="tech">USER</domain:contact>
                <domain:contact type="billing">USER</domain:contact>
                <domain:authInfo>
                    <domain:pw>2fooBAR</domain:pw>
                </domain:authInfo>
            </domain:create>
        </create>
        <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>
            <extValue>
                <value xmlns:epp="urn:ietf:params:xml:ns:epp-1.0">
                    <epp:undef/>
                </value>
                <reason>200 Command completed successfully</reason>
            </extValue>
        </result>
        <resData>
            <domain:creData 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>hexonet-epp-example-domain-with-service-contact.uk</domain:name>
                <domain:crDate>2014-05-01T08:30:29.0Z</domain:crDate>
                <domain:exDate>2016-05-01T08:30:28.0Z</domain:exDate>
            </domain:creData>
        </resData>
        <trID>
            <clTRID>HEXONET-EPP-EXAMPLE</clTRID>
            <svTRID>RW-26558-1398933029905984</svTRID>
        </trID>
    </response>
</epp>


EPP example of an update of a .UK domain to a new registrant out of the UK and a service address contact:

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>
        <update>
            <domain:update 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>hexonet-epp-example-domain-with-service-contact2.uk</domain:name>
                <domain:add>
                    <domain:contact type="admin">SERVICE-C1</domain:contact>
                </domain:add>
                <domain:rem>
                    <domain:contact type="admin">CONT2</domain:contact>
                </domain:rem>
                <domain:chg>
                    <domain:registrant>USER</domain:registrant>
                </domain:chg>
            </domain:update>
        </update>
        <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>
            <extValue>
                <value xmlns:epp="urn:ietf:params:xml:ns:epp-1.0">
                    <epp:undef/>
                </value>
                <reason>200 Command completed successfully</reason>
            </extValue>
        </result>
        <trID>
            <clTRID>HEXONET-EPP-EXAMPLE</clTRID>
            <svTRID>RW-26558-1398940048375841</svTRID>
        </trID>
    </response>
</epp>