This page shows examples of EPP XML sequences between an EPP client and the EPP server.
Change history
- 2023-05-16: A few minor corrections.
- 2021-08-24: The newest version of the applicant declaration (applicant dataset version) is now version 3.2, and must be used instead of the example value.
- 2019-12-10: The newest version of the applicant declaration (applicant dataset version) is now version 3.1, and must be used instead of the example value.
- 2018-08-07:
Updated three of the sequences to show use of the most recent personal declaration, version 3.0:- Domain create
- Domain info showing the created domain
- Domain update of applicant dataset only Please note that other examples may use version 2.0, but in practice, version 2.0 may be rejected. If that happens, use 3.0 instead.
- 2018-05-14:
Sequences for new data model is standard, and sequences for old model were removed. The number of sequences is therefore reduced.
The examples are mostly dumped via a Net::DRI command line client developed for .no, but for service messages, the web client for EPP and the client’s log function has also been used.
Please note: The sequences contain example data only. All texts are in English.
Domain renew
Domain renew: --- Do an info on the domain to find the current expiry date (exDate). Note that the expiry date is set to 2017-09-13T14:02:37.00Z. <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> <info> <domain:info 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 hosts="all">2017-09-09-dom-test-ny-renew.no</domain:name> </domain:info> </info> <clTRID>NORID-EC0.97-2a4a-20170911084138-0dee8e</clTRID> </command> </epp> 2017-09-11 10:41:38.989226 [NOTICE] <transport>NORID-EC0.97-2a4a-20170911084138-0dee8e IN <?xml version="1.0" encoding="UTF-8" standalone="no"?> <epp xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:ietf:params:xml:ns:epp-1.0" xsi:schemaLocation="urn:ietf:params:xml:ns:epp-1.0 epp-1.0.xsd"> <response> <result code="1000"> <msg>Command completed successfully</msg> </result> <msgQ count="7" id="435030380"/> <resData> <domain:infData xmlns="urn:ietf:params:xml:ns:domain-1.0" 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>2017-09-09-dom-test-ny-renew.no</domain:name> <domain:roid>DOM659889D-NORID</domain:roid> <domain:status s="ok"/> <domain:registrant>TH1251O</domain:registrant> <domain:contact type="tech">TR85R</domain:contact> <domain:ns> <domain:hostObj>ns2.sol.no</domain:hostObj> <domain:hostObj>ns3.sol.no</domain:hostObj> </domain:ns> <domain:clID>reg9094</domain:clID> <domain:crID>reg9094</domain:crID> <domain:crDate>2017-09-11T08:34:49.15Z</domain:crDate> <domain:upDate>2017-09-11T08:41:31.36Z</domain:upDate> <domain:exDate>2017-09-13T14:02:37.00Z</domain:exDate> <domain:authInfo> <domain:pw>I7owhpPS</domain:pw> </domain:authInfo> </domain:infData> </resData> <extension> <no-ext-domain:infData xmlns="http://www.norid.no/xsd/no-ext-domain-1.1" xmlns:no-ext-domain="http://www.norid.no/xsd/no-ext-domain-1.1"> <no-ext-domain:applicantDataset> <no-ext-domain:versionNumber>2.0</no-ext-domain:versionNumber> <no-ext-domain:acceptName>Ola Nordmann</no-ext-domain:acceptName> <no-ext-domain:acceptDate>2017-09-09T08:19:31.00Z</no-ext-domain:acceptDate> <no-ext-domain:updateClientID>reg9094</no-ext-domain:updateClientID> <no-ext-domain:updateDate>2017-09-11T08:34:49.26Z</no-ext-domain:updateDate> </no-ext-domain:applicantDataset> </no-ext-domain:infData> </extension> <trID> <clTRID>NORID-EC0.97-2a4a-20170911084138-0dee8e</clTRID> <svTRID>20170911104138914281-64q3qh-reg9094-NORID</svTRID> </trID> </response> </epp> --- Renew the domain for another 5 months, need to specify the current expiry date (curExpDate). <?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> <renew> <domain:renew 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>2017-09-09-dom-test-ny-renew.no</domain:name> <domain:curExpDate>2017-09-13</domain:curExpDate> <domain:period unit="m">5</domain:period> </domain:renew> </renew> <clTRID>NORID-EC0.97-2a4a-20170911084454-08b40a</clTRID> </command> </epp> 2017-09-11 10:44:56.218139 [NOTICE] <transport>NORID-EC0.97-2a4a-20170911084454-08b40a IN <?xml version="1.0" encoding="UTF-8" standalone="no"?> <epp xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:ietf:params:xml:ns:epp-1.0" xsi:schemaLocation="urn:ietf:params:xml:ns:epp-1.0 epp-1.0.xsd"> <response> <result code="1000"> <msg>Command completed successfully</msg> </result> <msgQ count="7" id="435030380"/> <extension> <conditions xmlns="http://www.norid.no/xsd/no-ext-result-1.0" xsi:schemaLocation="http://www.norid.no/xsd/no-ext-result-1.0 no-ext-result-1.0.xsd"> <condition code="EC001024" severity="info"> <msg>Command completed</msg> <details>Domain [2017-09-09-dom-test-ny-renew.no] has been renewed.</details> </condition> </conditions> </extension> <trID> <clTRID>NORID-EC0.97-2a4a-20170911084454-08b40a</clTRID> <svTRID>20170911104454571018-6rx937-reg9094-NORID</svTRID> </trID> </response> </epp> --- Do an info on the domain to check that the expiry date (exDate) has been incremented 5 months. Note thate the expiryDate now is 2018-02-13T15:02:37.00Z. <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> <info> <domain:info 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 hosts="all">2017-09-09-dom-test-ny-renew.no</domain:name> </domain:info> </info> <clTRID>NORID-EC0.97-2bfc-20170911084512-0aa385</clTRID> </command> </epp> 2017-09-11 10:45:12.765347 [NOTICE] <transport>NORID-EC0.97-2bfc-20170911084512-0aa385 IN <?xml version="1.0" encoding="UTF-8" standalone="no"?> <epp xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:ietf:params:xml:ns:epp-1.0" xsi:schemaLocation="urn:ietf:params:xml:ns:epp-1.0 epp-1.0.xsd"> <response> <result code="1000"> <msg>Command completed successfully</msg> </result> <msgQ count="7" id="435030380"/> <resData> <domain:infData xmlns="urn:ietf:params:xml:ns:domain-1.0" 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>2017-09-09-dom-test-ny-renew.no</domain:name> <domain:roid>DOM659889D-NORID</domain:roid> <domain:status s="ok"/> <domain:registrant>TH1251O</domain:registrant> <domain:contact type="tech">TR85R</domain:contact> <domain:ns> <domain:hostObj>ns2.sol.no</domain:hostObj> <domain:hostObj>ns3.sol.no</domain:hostObj> </domain:ns> <domain:clID>reg9094</domain:clID> <domain:crID>reg9094</domain:crID> <domain:crDate>2017-09-11T08:34:49.15Z</domain:crDate> <domain:upDate>2017-09-11T08:44:54.57Z</domain:upDate> <domain:exDate>2018-02-13T15:02:37.00Z</domain:exDate> <domain:authInfo> <domain:pw>I7owhpPS</domain:pw> </domain:authInfo> </domain:infData> </resData> <extension> <no-ext-domain:infData xmlns="http://www.norid.no/xsd/no-ext-domain-1.1" xmlns:no-ext-domain="http://www.norid.no/xsd/no-ext-domain-1.1"> <no-ext-domain:applicantDataset> <no-ext-domain:versionNumber>2.0</no-ext-domain:versionNumber> <no-ext-domain:acceptName>Ola Nordmann</no-ext-domain:acceptName> <no-ext-domain:acceptDate>2017-09-09T08:19:31.00Z</no-ext-domain:acceptDate> <no-ext-domain:updateClientID>reg9094</no-ext-domain:updateClientID> <no-ext-domain:updateDate>2017-09-11T08:34:49.26Z</no-ext-domain:updateDate> </no-ext-domain:applicantDataset> </no-ext-domain:infData> </extension> <trID> <clTRID>NORID-EC0.97-2bfc-20170911084512-0aa385</clTRID> <svTRID>20170911104512697624-d3yzms-reg9094-NORID</svTRID> </trID> </response> </epp> --- Try another renew to move the expiry date even further, this should be rejected by .NO registry policy because of mismatch on current expiry date. <?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> <renew> <domain:renew 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>2017-09-09-dom-test-ny-renew.no</domain:name> <domain:curExpDate>2018-02-13</domain:curExpDate> <domain:period unit="m">7</domain:period> </domain:renew> </renew> <clTRID>NORID-EC0.97-2bfc-20170911084711-03cbff</clTRID> </command> </epp> 2017-09-11 10:47:11.514040 [NOTICE] <transport>NORID-EC0.97-2bfc-20170911084711-03cbff IN <?xml version="1.0" encoding="UTF-8" standalone="no"?> <epp xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:ietf:params:xml:ns:epp-1.0" xsi:schemaLocation="urn:ietf:params:xml:ns:epp-1.0 epp-1.0.xsd"> <response> <result code="2105"> <msg>Object is not eligible for renewal</msg> </result> <msgQ count="7" id="435030380"/> <extension> <conditions xmlns="http://www.norid.no/xsd/no-ext-result-1.0" xsi:schemaLocation="http://www.norid.no/xsd/no-ext-result-1.0 no-ext-result-1.0.xsd"> <condition code="EC001025" severity="info"> <msg>Command failed</msg> <details>Failed to renew domain [2017-09-09-dom-test-ny-renew.no].</details> </condition> <condition code="EC002003" severity="error"> <msg>Domain is not renewable</msg> <details>Domain [2017-09-09-dom-test-ny-renew.no] is not renewable before [2018-01-14].</details> </condition> </conditions> </extension> <trID> <clTRID>NORID-EC0.97-2bfc-20170911084711-03cbff</clTRID> <svTRID>20170911104711249661-2ik6p6-reg9094-NORID</svTRID> </trID> </response> </epp> ---