Re: [EPP-discuss] EPP updated to EPP 1.0.4

From: Peter Larsen <peter.larsen_at_larsendata.dk>
Date: Tue, 2 Apr 2013 16:40:46 +0200

this was the result of Boris and me joined forces:

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
<?xml version="1.0"?>
        <epp xsi:schemaLocation="urn:ietf:params:xml:ns:epp-1.0 epp-1.0.xsd" xmlns:dkhm="urn:dkhm:params:xml:ns:dkhm-1.0" xmlns="urn:ietf:params:xml:ns:epp-1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <command>
                        <create>
                                <contact:create xsi:schemaLocation="urn:ietf:params:xml:ns:contact-1.0 contact-1.0.xsd" xmlns:contact="urn:ietf:params:xml:ns:contact-1.0">

        <contact:id>auto</contact:id>
        <contact:postalInfo type="loc">
          <contact:name>Peter Larsen</contact:name>
          <contact:org>Larsen Data ApS</contact:org>

          <contact:addr>
            <contact:street>Flaesketorvet 68</contact:street>
            <contact:city>Koebenhavn V</contact:city>
            <contact:sp></contact:sp>
            <contact:pc>1711</contact:pc>
            <contact:cc>DK</contact:cc>
          </contact:addr>
        </contact:postalInfo>
        <contact:postalInfo type="int">
          <contact:name>Peter Larsen</contact:name>
          <contact:org>Larsen Data ApS</contact:org>

          <contact:addr>
            <contact:street>Flaesketorvet 68</contact:street>
            <contact:city>Koebenhavn V</contact:city>
            <contact:sp></contact:sp>
            <contact:pc>1711</contact:pc>
            <contact:cc>DK</contact:cc>
          </contact:addr>
        </contact:postalInfo>
        <contact:voice>+45.46903232</contact:voice>
        <contact:fax>+45.46903234</contact:fax>
        <contact:email>peter.larsen_at_larsendata.dk</contact:email>
        <contact:authInfo>
          <contact:pw/>
        </contact:authInfo>
      </contact:create>
    </create>
        
        <extension>
                        <dkhm:userType>company</dkhm:userType>
                        <dkhm:CVR>32160395</dkhm:CVR>
                        <dkhm:EAN></dkhm:EAN>
        </extension>
      
      
          <clTRID>c984aed014aec7623a54f0591da07a85fd4b762d</clTRID>
  </command>
</epp>

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
<?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>Contact created.</msg>
        </result>
        <resData>
                <contact:creData xmlns:contact="urn:ietf:params:xml:ns:contact-1.0">
                        <contact:id>LDA2-DK</contact:id>
                        <contact:crDate>2013-04-02T14:27:00.0Z</contact:crDate>
                </contact:creData>
    </resData>
        <trID>
                <clTRID>c984aed014aec7623a54f0591da07a85fd4b762d</clTRID>
                <svTRID>61B1C966-9BA1-11E2-8534-BCF65D7486CE</svTRID>
        </trID>
</response>
</epp>

<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<



conclusion:

1) error handling is defiantly not working.

2) to get contact create to work:
        <epp xsi:schemaLocation="urn:ietf:params:xml:ns:epp-1.0 epp-1.0.xsd" xmlns:dkhm="urn:dkhm:params:xml:ns:dkhm-1.0" xmlns="urn:ietf:params:xml:ns:epp-1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
        <....>
        </epp>

3) remember, documentation is not correct on contact create example of the extension (one of the few examples in the documentation), correct is here:

        <extension>
                        <dkhm:userType>company</dkhm:userType>
                        <dkhm:CVR>32160395</dkhm:CVR>
                        <dkhm:EAN></dkhm:EAN>
        </extension>

4) dkhm:userType "C"/"c" is defently not working either (silly me, i'm actually reading the documentation):

<?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="2001"> <msg>XSD Validation failed Element &apos;{urn:dkhm:params:xml:ns:dkhm-1.0}userType&apos;: &apos;C&apos; is not a valid value of the atomic type &apos;{urn:dkhm:params:xml:ns:dkhm-1.0}userType&apos;.
</msg> </result> <trID><clTRID>missing</clTRID><svTRID>50F8BEBC-9BA2-11E2-8534-BCF65D7486CE</svTRID> </trID>
</response></epp>


this is just one command..




regards, Peter Larsen - ICANN Accredited registrar

My info: http://larsen.tel
Company info: http://larsendata.tel

On Apr 2, 2013, at 11:44 AM, Erik Johansen <ejo_at_dk-hostmaster.dk> wrote:

> Here is an XML example of a create contact, from our test suite.
> Hope that it may help you.
>
> /Erik
>
> The first is including the namespace as it is seen when received on the server. The second is the original test data.
>
> <ns2:epp ns1:schemaLocation="urn:ietf:params:xml:ns:epp-1.0 epp-1.0.xsd" xmlns:ns4="urn:dkhm:params:xml:ns:dkhm-1.0" xmlns:ns3="urn:ietf:params:xml:ns:contact-1.0" xmlns:ns2="urn:ietf:params:xml:ns:epp-1.0" xmlns:ns1="http://www.w3.org/2001/XMLSchema-instance" xmlns:ns0="DAV:">
> <ns2:command>
> <ns2:create>
> <ns3:create ns1:schemaLocation="urn:ietf:params:xml:ns:contact-1.0 contact-1.0.xsd">
> <ns3:id>PO2096-DK</ns3:id>
> <ns3:postalInfo type="loc">
> <ns3:name>Erik Johansen</ns3:name>
> <ns3:org>DK Hostmaster</ns3:org>
> <ns3:addr>
> <ns3:street>Kalvebod brygge 45, 3. sal</ns3:street>
> <ns3:city>København V</ns3:city>
> <ns3:pc>1560</ns3:pc>
> <ns3:cc>DK</ns3:cc>
> </ns3:addr>
> </ns3:postalInfo>
> <ns3:postalInfo type="int">
> <ns3:name>Erik Johansen</ns3:name>
> <ns3:org>DK Hostmaster</ns3:org>
> <ns3:addr>
> <ns3:street>Kalvebod brygge 45, 3.</ns3:street>
> <ns3:city>Copenhagen V</ns3:city>
> <ns3:pc>1560</ns3:pc>
> <ns3:cc>DK</ns3:cc>
> </ns3:addr>
> </ns3:postalInfo>
> <ns3:voice>+45.33646060</ns3:voice>
> <ns3:fax/><ns3:email>ejo+epptest-sample_at_dk-hostmaster.dk</ns3:email>
> <ns3:authInfo>
> <ns3:pw/>
> </ns3:authInfo>
> </ns3:create>
> </ns2:create>
> <ns2:extension>
> <ns4:userType>public_organization</ns4:userType>
> <ns4:CVR>1234567891231</ns4:CVR>
> <ns4:EAN>1234567891231</ns4:EAN>
> </ns2:extension>
> <ns2:clTRID>zx813bd5c14eceb5570559a470fce553</ns2:clTRID>
> </ns2:command>
> </ns2:epp>
>
>
> <epp xsi:schemaLocation="urn:ietf:params:xml:ns:epp-1.0 epp-1.0.xsd">
> <command>
> <create>
> <contact:create xsi:schemaLocation="urn:ietf:params:xml:ns:contact-1.0 contact-1.0.xsd">
> <contact:id>PO2096-DK</contact:id>
> <contact:postalInfo type="loc">
> <contact:name>Erik Johansen</contact:name>
> <contact:org>DK Hostmaster</contact:org>
> <contact:addr>
> <contact:street>Kalvebod brygge 45, 3. sal</contact:street>
> <contact:city>København V</contact:city>
> <contact:pc>1560</contact:pc>
> <contact:cc>DK</contact:cc>
> </contact:addr>
> </contact:postalInfo>
> <contact:postalInfo type="int">
> <contact:name>Erik Johansen</contact:name>
> <contact:org>DK Hostmaster</contact:org>
> <contact:addr>
> <contact:street>Kalvebod brygge 45, 3.</contact:street>
> <contact:city>Copenhagen V</contact:city>
> <contact:pc>1560</contact:pc>
> <contact:cc>DK</contact:cc>
> </contact:addr>
> </contact:postalInfo>
> <contact:voice>+45.33646060</contact:voice>
> <contact:fax/>
> <contact:email>ejo+epptest-sample_at_dk-hostmaster.dk</contact:email>
> <contact:authInfo>
> <contact:pw/>
> </contact:authInfo>
> </contact:create>
> </create>
> <extension>
> <dkhm:userType>public_organization</dkhm:userType>
> <dkhm:CVR>1234567891231</dkhm:CVR>
> <dkhm:EAN>1234567891231</dkhm:EAN>
> </extension>
> <clTRID>zx813bd5c14eceb5570559a470fce553</clTRID>
> </command>
> </epp>
>
> On 02-04-2013 10:32, Boris Fernandez wrote:
>> Also can DK Hostmaster make sure the webpage https://www.dk-hostmaster.dk/english/tech-notes/epp/ is updated with latest release.
>>
>> It become hard to find out about updates by searching my email folders…
>>
>> Thanks a lot
>>
>> From: Boris Fernandez [mailto:Boris.Fernandez_at_ascio.com]
>> Sent: 2. april 2013 10:31
>> To: EPP-discuss_at_liste.dk-hostmaster.dk
>> Subject: RE: [EPP-discuss] EPP updated to EPP 1.0.4
>>
>> Well apparently since the last update I do have the same error as you, Peter.
>>
>> Also tried
>>
>> <extension>
>> <dkhm-contact:create xmlns:dkhm-contact="urn:dkhm:params:xml:ns:dkhm-contact-1.0">
>>
>> Without any success…
>>
>>
>> <?xml version="1.0"?>
>> <epp xsi:schemaLocation="urn:ietf:params:xml:ns:epp-1.0 epp-1.0.xsd" xmlns="urn:ietf:params:xml:ns:epp-1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
>> <command>
>> <create>
>> <contact:create xsi:schemaLocation="urn:ietf:params:xml:ns:contact-1.0 contact-1.0.xsd" xmlns:contact="urn:ietf:params:xml:ns:contact-1.0">
>> <contact:id>MXOHU1399-DK</contact:id>
>> <contact:postalInfo type="int">
>> <contact:name>toto toto</contact:name>
>> <contact:org>Ascio</contact:org>
>> <contact:addr>
>> <contact:street>toto str</contact:street>
>> <contact:city>WhoopyCity</contact:city>
>> <contact:sp> </contact:sp>
>> <contact:pc>45690</contact:pc>
>> <contact:cc>DK</contact:cc>
>> </contact:addr>
>> </contact:postalInfo>
>> <contact:voice>+45.27272727</contact:voice>
>> <contact:fax>>+45.27272728</contact:fax>
>> <contact:email>borisf_at_ascio.com</contact:email>
>> <contact:authInfo>
>> <contact:pw>ss*#v4h8r6N!</contact:pw>
>> </contact:authInfo>
>> </contact:create>
>> </create>
>> <extension>
>> <dkhm-contact:create xmlns:dkhm-contact="urn:dkhm:params:xml:ns:dkhm-1.0">
>> <dkhm-contact:userType>P</dkhm-contact:userType>
>> <dkhm-contact:CVR>4564654</dkhm-contact:CVR>
>> <dkhm-contact:EAN>4564654</dkhm-contact:EAN>
>> </dkhm-contact:create>
>> </extension>
>> <clTRID>ascio102587187471202</clTRID>
>> </command>
>> </epp>
>>
>> [2013-04-02 10:26:27][Info][dk][RABBIT]
>> [4f7d04b67f504ee19c662241c5c911f4] Request from 10.0.20.134:3312
>> <?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="2001">
>> <msg>XSD Validation failed Element &apos;{urn:dkhm:params:xml:ns:dkhm-1.0}create&apos;: No matching global element declaration available, but demanded by the strict wildcard.</msg>
>> </result>
>> <trID>
>> <clTRID>missing</clTRID>
>> <svTRID>F10C5406-9B6E-11E2-A30C-2732922A5B5C</svTRID>
>> </trID>
>> </response>
>> </epp>
>>
>>
>> From: Peter Larsen [mailto:peter.larsen_at_larsendata.dk]
>> Sent: 30. marts 2013 10:16
>> To: EPP-discuss_at_liste.dk-hostmaster.dk
>> Subject: Re: [EPP-discuss] EPP updated to EPP 1.0.4
>>
>> According to the documentation... It should work as is, but i'll give it with an extra try with all options later..:)
>>
>> Anyways, if thats the case, better errorhandling :)
>>
>> Sent from my iPhone
>>
>> On Mar 30, 2013, at 8:32 AM, Boris Fernandez <Boris.Fernandez_at_ascio.com> wrote:
>>
>> hmm I remember I had to place all the available fields of the contact create extension to make the create working
>>
>> Even with an empty value.
>>
>> I don't have access to my computer right now but , correct me if I am wrong, I think there was more field than UserType and CVR ?
>>
>> Maybe you can try to add all available fields and check the result.
>>
>> Boris
>>
>>
>> Le 30/03/2013 à 08.21, "Boris Fernandez" <Boris.Fernandez_at_ascio.com> a écrit :
>>
>>
>> i believe it is a strict wildcard.
>>
>> try to declare
>>
>>
>> urn:dkhm:params:xml:ns:dkhm-contact-1.0
>>
>>
>> Le 29/03/2013 à 23.22, "Peter Larsen" <peter.larsen_at_larsendata.dk> a écrit :
>>
>> <?xml version="1.0" encoding="UTF-8"?>
>> <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>
>> <login>
>> <clID>REG-XXXXXXXXX</clID>
>> <pw>YYYYYYYYYY</pw>
>> <options>
>> <version>1.0</version>
>> <lang>en</lang>
>> </options>
>> <svcs>
>> <objURI>urn:ietf:params:xml:ns:contact</objURI>
>> <objURI>urn:ietf:params:xml:ns:host</objURI>
>> <objURI>urn:ietf:params:xml:ns:domain</objURI>
>> <svcExtension>
>> <extURI>urn:ietf:params:xml:ns:secDNS-1.1</extURI>
>> <extURI>urn:dkhm:params:xml:ns:dkhm-1.0</extURI>
>>
>>
>> urn:dkhm:params:xml:ns:dkhm-contact-1.0"
>>
>>
>> </svcExtension>
>> </svcs>
>> </login>
>> <clTRID>c984aed014aec7623a54f0591da07a85fd4b762d</clTRID>
>> </command>
>> </epp>
>>
>>
>> i would say yes?
>>
>>
>> regards, Peter Larsen - ICANN Accredited registrar
>>
>> My info: http://larsen.tel
>> Company info: http://larsendata.tel
>>
>> On Mar 29, 2013, at 9:50 PM, Boris Fernandez <Boris.Fernandez_at_ascio.com> wrote:
>>
>>
>> is the extension declared during your login ?
>>
>> Le 29/03/2013 à 18.31, "Peter Larsen" <peter.larsen_at_larsendata.dk> a écrit :
>>
>> what am i missing here?
>>
>>
>> <?xml version="1.0" encoding="UTF-8"?>
>> <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>HBHBHB8-DK</contact:id>
>> <contact:postalInfo type="loc">
>> <contact:name>Peter Larsen</contact:name>
>> <contact:org>Larsen Data ApS</contact:org>
>> <contact:addr>
>> <contact:street>Flaesketorvet 68</contact:street>
>> <contact:city>Koebenhavn V</contact:city>
>> <contact:sp></contact:sp>
>> <contact:pc>1711</contact:pc>
>> <contact:cc>DK</contact:cc>
>> </contact:addr>
>> </contact:postalInfo>
>> <contact:postalInfo type="int">
>> <contact:name>Peter Larsen</contact:name>
>> <contact:org>Larsen Data ApS</contact:org>
>> <contact:addr>
>> <contact:street>Flaesketorvet 68</contact:street>
>> <contact:city>Koebenhavn V</contact:city>
>> <contact:sp></contact:sp>
>> <contact:pc>1711</contact:pc>
>> <contact:cc>DK</contact:cc>
>> </contact:addr>
>> </contact:postalInfo>
>> <contact:voice>+45.46903232</contact:voice>
>> <contact:fax>+45.46903234</contact:fax>
>> <contact:email>peter.larsen_at_larsendata.dk</contact:email>
>> <contact:authInfo>
>> <contact:pw/>
>> </contact:authInfo>
>> </contact:create>
>> </create>
>> <extension>
>> <dkhm-contact:create xmlns:dkhm-contact="urn:dkhm:params:xml:ns:dkhm-contact-1.0">
>> <dkhm-contact:userType>A</dkhm-contact:userType>
>> <dkhm-contact:CVR>00000000</dkhm-contact:CVR>
>> </dkhm-contact:create>
>> </extension>
>> <clTRID>c984aed014aec7623a54f0591da07a85fd4b762d</clTRID>
>> </command>
>> </epp>
>>
>> <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
>> <?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="2001"> <msg>XSD Validation failed Element &apos;{urn:dkhm:params:xml:ns:dkhm-contact-1.0}create&apos;: No matching global element declaration available, but demanded by the strict wildcard.
>> </msg> </result> <trID><clTRID>missing</clTRID><svTRID>9144FA4A-9895-11E2-A30C-2732922A5B5C</svTRID> </trID>
>> </response></epp>
>>
>> <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
>
>
> --
> Med venlig hilsen/Best Regards
> Erik Johansen
> Titel: Udvikler/Developer
>
> DK Hostmaster A/S
> Kalvebod Brygge 45, 3. sal
> 1560 København V
>
> Tlf. 33 64 60 60
> Mobil: 40 13 60 57
> Fax.: 33 64 60 66
> Email:
> ejo+s1_at_dk-hostmaster.dk
>
> Homepage:
> http://www.dk-hostmaster.dk
>
>
> .dk Danmarks plads på Internettet
>
> -------------------------------------------------------------------------
> Dette er en e-mail fra DK Hostmaster A/S. Denne e-mail kan indeholde
> fortrolig information, som kun er til brug for den tiltænkte modtager.
> Hvis du ved en fejl har modtaget denne e-mail, bedes du venligst straks
> give afsenderen besked om dette og slette e-mailen fra dit system uden
> at offentliggøre, videresende eller tage kopi af meddelelsen.
>
> This is an email from DK Hostmaster A/S. This message may contain
> confidential information and is intended solely for the use of the
> intended addressee. If you are not the intended addressee please notify
> the sender immediately and delete this e-mail from your system. You are
> not permitted to disclose, distribute or copy the information in this
> e-mail.
> --------------------------------------------------------------------------
>
Received on Tue Apr 02 2013 - 16:40:46 CEST

This archive was generated by hypermail 2.3.0 : Fri Feb 06 2015 - 11:39:10 CET