Closed timmie01 closed 6 years ago
I presume there is something wrong with the XML formatting of the message but the XML on your message was not properly formatted. Please use the "insert code" option to show XML
HI,
These is a XML formatting problem,
I deleted the namespace in the epp rule, and now I got an error back from SIDN that this is no binding for the namespace.
The correct format whould be
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
The epp rule should look like
SIDN accepts both ways, you can put the namespace directly into the first EPP line, or you can put it where it is used, in the domain check.
There is a branch of php-epp-client that does just this, (branch namespaces-in-root-or-not), but you don't need to go there. The main branch php-epp-client should work fine with SIDN, as we use it daily for this.
Please find hereunder a correct example of how SIDN handles a domain:check using the standard php-epp-client library
==== LOG ====
-----CONNECT-----2017-08-16 12:21:32-----
Connection made
-----END-----2017-08-16 12:21:32-----
-----WRITE-----2017-08-16 12:21:32-----
<?xml version="1.0" encoding="UTF-8"?>
<epp xmlns="urn:ietf:params:xml:ns:epp-1.0">
<command>
<login>
<clID>XXXXXXXXXXXXXXXX</clID>
<pw>XXXXXXXXXXXXXXXX</pw>
<options>
<version>1.0</version>
<lang>en</lang>
</options>
<svcs>
<objURI>urn:ietf:params:xml:ns:domain-1.0</objURI>
<objURI>urn:ietf:params:xml:ns:contact-1.0</objURI>
<objURI>urn:ietf:params:xml:ns:host-1.0</objURI>
<svcExtension>
<extURI>http://rxsd.domain-registry.nl/sidn-ext-epp-1.0</extURI>
<extURI>urn:ietf:params:xml:ns:secDNS-1.1</extURI>
</svcExtension>
</svcs>
</login>
<clTRID>59941cac2c7dd</clTRID>
</command>
</epp>
` -----END-----2017-08-16 12:21:32-----`
-----READ-----2017-08-16 12:21:32-----
<?xml version="1.0" encoding="UTF-8"?>
<epp xmlns="urn:ietf:params:xml:ns:epp-1.0">
<response>
<result code="1000">
<msg>The transaction was completed successfully.</msg>
</result>
<trID>
<clTRID>59941cac2c7dd</clTRID>
<svTRID>5508897A-0AF6-D1DD-5C79-5423E124C03B</svTRID>
</trID>
</response>
</epp>
` -----END-----2017-08-16 12:21:32-----`
-----LOGIN-----2017-08-16 12:21:32-----
Logged in
-----END-----2017-08-16 12:21:32-----
` -----WRITE-----2017-08-16 12:21:32-----` ` <?xml version="1.0" encoding="UTF-8"?>` `<epp xmlns="urn:ietf:params:xml:ns:epp-1.0" xmlns:domain="urn:ietf:params:xml:ns:domain-1.0">` `<command>` ` <check>` ` <domain:check>` ` <domain:name>testen.nl</domain:name>` ` </domain:check>` ` </check>` ` <clTRID>59941cac40888</clTRID>` `</command>` `</epp>`
-----END-----2017-08-16 12:21:32-----
` -----READ-----2017-08-16 12:21:32-----` ` <?xml version="1.0" encoding="UTF-8"?>` `<epp xmlns="urn:ietf:params:xml:ns:epp-1.0" xmlns:domain="urn:ietf:params:xml:ns:domain-1.0">` `<response>` ` <result code="1000">` ` <msg>The availability of the domain name has been checked.</msg>` ` </result>` ` <resData>` ` <domain:chkData>` ` <domain:cd>` ` <domain:name avail="true">testen.nl</domain:name>` ` </domain:cd>` ` </domain:chkData>` ` </resData>` ` <trID>` ` <clTRID>59941cac40888</clTRID>` ` <svTRID>2F77B2FE-880E-7AC2-2C6D-E728597BFB17</svTRID>` ` </trID>` `</response>` `</epp>`
-----END-----2017-08-16 12:21:32-----
` -----WRITE-----2017-08-16 12:21:32-----` ` <?xml version="1.0" encoding="UTF-8"?>` `<epp xmlns="urn:ietf:params:xml:ns:epp-1.0">` `<command>` ` <logout></logout>` `</command>` `</epp>`
-----END-----2017-08-16 12:21:32-----
`
-----READ-----2017-08-16 12:21:32-----
<?xml version="1.0" encoding="UTF-8"?>
-----END-----2017-08-16 12:21:32-----
-----LOGOUT-----2017-08-16 12:21:32-----
Logged out
-----END-----2017-08-16 12:21:32-----
-----DISCONNECT-----2017-08-16 12:21:32-----
Disconnected
-----END-----2017-08-16 12:21:32-----`
strange,
If I use the standard branch of php-epp-client I get the same result see below.
Could it be a php problem, I use
PHP 7.0.22-0ubuntu0.16.04.1 (cli) ( NTS ) Copyright (c) 1997-2017 The PHP Group Zend Engine v3.0.0, Copyright (c) 1998-2017 Zend Technologies with Zend OPcache v7.0.22-0ubuntu0.16.04.1, Copyright (c) 1999-2017, by Zend Technologies
-----WRITE-----2017-08-16 13:49:41----- <?xml version="1.0" encoding="UTF-8"?>
-----END-----2017-08-16 13:49:41-----
-----READ-----2017-08-16 13:49:41----- <?xml version="1.0" encoding="UTF-8"?>
From: Ewout de Graaf notifications@github.com Sent: Wednesday, August 16, 2017 10:27 AM To: metaregistrar/php-epp-client Cc: timmie01; Author Subject: Re: [metaregistrar/php-epp-client] 2400 internal error (#102)
SIDN accepts both ways, you can put the namespace directly into the first EPP line, or you can put it where it is used, in the domain check.
There is a branch of php-epp-client that does just this, (branch namespaces-in-root-or-not), but you don't need to go there. The main branch php-epp-client should work fine with SIDN, as we use it daily for this.
Please find hereunder a correct example of how SIDN handles a domain:check using the standard php-epp-client library
==== LOG ==== -----CONNECT-----2017-08-16 12:21:32----- Connection made -----END-----2017-08-16 12:21:32----- -----WRITE-----2017-08-16 12:21:32----- <?xml version="1.0" encoding="UTF-8"?>
-----END-----2017-08-16 12:21:32-----
-----READ-----2017-08-16 12:21:32-----
<?xml version="1.0" encoding="UTF-8"?>
-----END-----2017-08-16 12:21:32-----
-----LOGIN-----2017-08-16 12:21:32-----
Logged in
-----END-----2017-08-16 12:21:32-----
-----WRITE-----2017-08-16 12:21:32-----
<?xml version="1.0" encoding="UTF-8"?>
<epp xmlns="urn:ietf:params:xml:ns:epp-1.0" xmlns:domain="urn:ietf:params:xml:ns:domain-1.0">
<command>
<check>
<domain:check>
<domain:name>testen.nl</domain:name>
</domain:check>
</check>
<clTRID>59941cac40888</clTRID>
</command>
</epp>
-----END-----2017-08-16 12:21:32-----
-----READ-----2017-08-16 12:21:32-----
<?xml version="1.0" encoding="UTF-8"?>
<epp xmlns="urn:ietf:params:xml:ns:epp-1.0" xmlns:domain="urn:ietf:params:xml:ns:domain-1.0">
<response>
<result code="1000">
<msg>The availability of the domain name has been checked.</msg>
</result>
<resData>
<domain:chkData>
<domain:cd>
<domain:name avail="true">testen.nl</domain:name>
</domain:cd>
</domain:chkData>
</resData>
<trID>
<clTRID>59941cac40888</clTRID>
<svTRID>2F77B2FE-880E-7AC2-2C6D-E728597BFB17</svTRID>
</trID>
</response>
</epp>
-----END-----2017-08-16 12:21:32-----
-----WRITE-----2017-08-16 12:21:32-----
<?xml version="1.0" encoding="UTF-8"?>
<epp xmlns="urn:ietf:params:xml:ns:epp-1.0">
<command>
<logout></logout>
</command>
</epp>
-----END-----2017-08-16 12:21:32-----
-----READ-----2017-08-16 12:21:32----- ` `
` ` ` You are now logged off.` ` ` ` ` ` 59F0ADAC-11CE-EA64-A18F-60783129FB26` ` `
`
-----END-----2017-08-16 12:21:32-----
-----LOGOUT-----2017-08-16 12:21:32-----
Logged out
-----END-----2017-08-16 12:21:32-----
-----DISCONNECT-----2017-08-16 12:21:32-----
Disconnected
-----END-----2017-08-16 12:21:32-----`
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/metaregistrar/php-epp-client/issues/102#issuecomment-322729519, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AdnBZnPeSCXaiDZCjMetMjcMpDWvUeddks5sYsP1gaJpZM4O4D_A.
Maybe you are nog logging in correctly. Please make sure that upon login this is included:
<svcs>
<objURI>urn:ietf:params:xml:ns:domain-1.0</objURI>
<objURI>urn:ietf:params:xml:ns:contact-1.0</objURI>
<objURI>urn:ietf:params:xml:ns:host-1.0</objURI>
<svcExtension>
<extURI>http://rxsd.domain-registry.nl/sidn-ext-epp-1.0</extURI>
<extURI>urn:ietf:params:xml:ns:secDNS-1.1</extURI>
</svcExtension>
</svcs>
I am logged in successfully see log below.
==== LOG ==== -----CONNECT-----2017-08-16 15:39:34----- Connection made -----END-----2017-08-16 15:39:34-----
-----WRITE-----2017-08-16 15:39:34----- <?xml version="1.0" encoding="UTF-8"?>
-----END-----2017-08-16 15:39:34-----
-----READ-----2017-08-16 15:39:34----- <?xml version="1.0" encoding="UTF-8"?>
-----END-----2017-08-16 15:39:34-----
-----LOGIN-----2017-08-16 15:39:34----- Logged in -----END-----2017-08-16 15:39:34-----
-----WRITE-----2017-08-16 15:39:34----- <?xml version="1.0" encoding="UTF-8"?>
-----END-----2017-08-16 15:39:34-----
-----READ-----2017-08-16 15:39:34----- <?xml version="1.0" encoding="UTF-8"?>
-----END-----2017-08-16 15:39:34-----
-----WRITE-----2017-08-16 15:39:34----- <?xml version="1.0" encoding="UTF-8"?>
-----END-----2017-08-16 15:39:34-----
-----READ-----2017-08-16 15:39:34----- <?xml version="1.0" encoding="UTF-8"?>
-----END-----2017-08-16 15:39:34-----
-----LOGOUT-----2017-08-16 15:39:34----- Logged out -----END-----2017-08-16 15:39:34-----
-----DISCONNECT-----2017-08-16 15:39:34----- Disconnected -----END-----2017-08-16 15:39:34-----
From: Ewout de Graaf notifications@github.com Sent: Wednesday, August 16, 2017 1:31 PM To: metaregistrar/php-epp-client Cc: timmie01; Author Subject: Re: [metaregistrar/php-epp-client] 2400 internal error (#102)
Maybe you are nog logging in correctly. Please make sure that upon login this is included:
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/metaregistrar/php-epp-client/issues/102#issuecomment-322771573, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AdnBZsV53FVbUU-DI9f5SxPKYLCOPT0Cks5sYu8vgaJpZM4O4D_A.
Well, this surely is a nice riddle. I have done a 'diff' check of both our commands, and the only difference the system finds is the client transaction ID.
<clTRID>59944b16a8abc</clTRID>
Maybe you should send this off to support@sidn.nl and ask them what goes wrong. I am surely very curious what the answer is!
Hello,
I just contact SIDN support, and there answer is that this error should be formatting error.
They unfortunately cannot see what is going wrong.
They ask me to use the example xml for domaincheck from there website, en try if then the error still exist, but I don't now how I can use there xml.or ajust the xml that is an exact copy.
From: Ewout de Graaf notifications@github.com Sent: Wednesday, August 16, 2017 2:19 PM To: metaregistrar/php-epp-client Cc: timmie01; Author Subject: Re: [metaregistrar/php-epp-client] 2400 internal error (#102)
Well, this surely is a nice riddle. I have done a 'diff' check of both our commands, and the only difference the system finds is the client transaction ID.
diff check2.xml check1.xml 9c9 < 59945328a768d
Maybe you should send this off to support@sidn.nlmailto:support@sidn.nl and ask them what goes wrong. I am surely very curious what the answer is!
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/metaregistrar/php-epp-client/issues/102#issuecomment-322786621, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AdnBZtWqFffWKVnm0cf7R-VilPt5W3I2ks5sYvp1gaJpZM4O4D_A.
This sounds like a nice 'standard answer' from support. Are you using the live EPP service from SIDN or the test service?
We use the live service on ssl://drs.domain-registry.nl on port 700
From: Ewout de Graaf notifications@github.com Sent: Thursday, August 17, 2017 11:33 AM To: metaregistrar/php-epp-client Cc: timmie01; Author Subject: Re: [metaregistrar/php-epp-client] 2400 internal error (#102)
This sounds like a nice 'standard answer' from support. Are you using the live EPP service from SIDN or the test service?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/metaregistrar/php-epp-client/issues/102#issuecomment-323044962, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AdnBZrzLFo_HjUcSXv0kRMJ4hnn-8LCAks5sZCUdgaJpZM4O4D_A.
can you try if you have the same issue on SIDN test service? If you can tell them there is no issue on the test service with the same code, they will need to search deeper.
We have had this problem (error 2400) some time ago with SIDN, and they needed to restart a broken process to get it fixed.
if I use the test service ( I only change the settings.ini file ) to ssl://testdrs.domain-registry.nl and use the test accounts then I get the following error ERROR: Error 2001: Error in login (clID and pw must be present).
The accounts are double check with sidn so they are working and in the XML I see the clID en pw.
So I seems there is a differents between test and production.
Checking 1 domain names ERROR: Error 2001: Error in login (clID and pw must be present).
==== LOG ==== -----CONNECT-----2017-08-17 15:43:57----- Connection made -----END-----2017-08-17 15:43:57-----
-----WRITE-----2017-08-17 15:43:57----- <?xml version="1.0" encoding="UTF-8"?>
-----END-----2017-08-17 15:43:57-----
-----READ-----2017-08-17 15:43:57----- <?xml version="1.0" encoding="UTF-8"?>
From: Ewout de Graaf notifications@github.com Sent: Thursday, August 17, 2017 12:10 PM To: metaregistrar/php-epp-client Cc: timmie01; Author Subject: Re: [metaregistrar/php-epp-client] 2400 internal error (#102)
can you try if you have the same issue on SIDN test service? If you can tell them there is no issue on the test service with the same code, they will need to search deeper.
We have had this problem (error 2400) some time ago with SIDN, and they needed to restart a broken process to get it fixed.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/metaregistrar/php-epp-client/issues/102#issuecomment-323053762, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AdnBZlOFmwfrTardnNHf2PFYguD1UEjUks5sZC27gaJpZM4O4D_A.
Can you please pull the latest version from the repository - i have made an change where the system would put [<[CDATA]] around the password, but SIDN does not accept this. The latest version fixes this.
I use the latest version, and now the test is wordking I can check the domain name in the test drs system. Production give me an autorisatie error on the command check (error 2201) but I see the connection is made and I am logged in. so now it is a different error as before and I will reset my EPP account password first, because I dit need to change my password also 2 time before the test was working. I will change this tomorrow and let you know wat the result are.
On 17 Aug 2017, at 17:06, Ewout de Graaf notifications@github.com<mailto:notifications@github.com> wrote:
Can you please pull the latest version from the repository - i have made an change where the system would put [<[CDATA]] around the password, but SIDN does not accept this. The latest version fixes this.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/metaregistrar/php-epp-client/issues/102#issuecomment-323087540, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AdnBZvNSbX-ObbrRK75eEHbtEvUP1Q5Jks5sZEu7gaJpZM4O4D_A.
Hello Ewout,
Hereby an update on my problem. After several contact with SIDN we finally have all working. The problem was that our EPP account was active but wasn’t attach to a role “deelnemer” within the EPP database, so it wasn’t a problem with the php program. The attach me to this role and then everything was working as it should be.. SIDN will now go thru all there accounts so that the can adjust these if the not attached. The also make a note so that someone else have this problem the wil check this first.
Thank you for all your effort.
On 17 Aug 2017, at 17:06, Ewout de Graaf notifications@github.com<mailto:notifications@github.com> wrote:
Can you please pull the latest version from the repository - i have made an change where the system would put [<[CDATA]] around the password, but SIDN does not accept this. The latest version fixes this.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/metaregistrar/php-epp-client/issues/102#issuecomment-323087540, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AdnBZvNSbX-ObbrRK75eEHbtEvUP1Q5Jks5sZEu7gaJpZM4O4D_A.
Excellent, thanks. I also saw that SIDN corrected the [<[CATA]] issue with the password.
Hi, by every request I get Error 2400, what I'm doing wrong? I am trying checkdomain.php with SIDN.
I ajdust checkdomain.php for sidn connection and I see the connection is working, I can also login, but the command domain:check fails with error 2400
-----READ-----2017-08-15 21:55:15----- <?xml version="1.0" encoding="UTF-8"?>
-----END-----2017-08-15 21:55:15-----
-----LOGIN-----2017-08-15 21:55:15----- Logged in -----END-----2017-08-15 21:55:15-----
-----WRITE-----2017-08-15 21:55:15----- <?xml version="1.0" encoding="UTF-8"?>
-----END-----2017-08-15 21:55:15-----
-----READ-----2017-08-15 21:55:15----- <?xml version="1.0" encoding="UTF-8"?>