[Eppnicbr] Comandos EPP

Renato Oliveira roliveira.paula at gmail.com
Mon Jul 23 15:20:07 BRT 2007


Pessoal,

Estou executando os seguintes comandos no Servidor EPP e sempre recebi o
mesmo erro.

        <result code="2306">
            <msg>Parameter value policy error</msg>
            <extValue>
                <value xmlns:brorg="urn:ietf:params:xml:ns:brorg-1.0">
                    <brorg:contact type="admin">Teste</brorg:contact>
                </value>
                <reason>Invalid contact handle</reason>
            </extValue>
        </result>

Segue abaixo a sequência de comandos e os XMLs trafegados.

1- Comando CHECK para verificar se o contato existe. OK
2- Comando CREATE para criar o contato.
XML Envio:
<?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>rop123456</contact:id>
                <contact:postalInfo type='loc'>
                    <contact:name>Teste abc</contact:name>
                    <contact:org>Example Inc.</contact:org>
                    <contact:addr>
                        <contact:street>Av. Nacoes Unidas,
11541</contact:street>
                        <contact:street>7o. andar</contact:street>
                        <contact:city>Sao Paulo</contact:city>
                        <contact:sp>SP</contact:sp>
                        <contact:pc>04578-000</contact:pc>
                        <contact:cc>BR</contact:cc>
                    </contact:addr>
                </contact:postalInfo>
                <contact:voice x='1234'>+55.1155093500</contact:voice>
                <contact:fax>+55.1155093501</contact:fax>
                <contact:email>jdoe at example.com</contact:email>
                <contact:authInfo>
                    <contact:pw roid='SH8013-REP'>2fooBAR</contact:pw>
                </contact:authInfo>
                <contact:disclose flag='0'>
                    <contact:voice/>
                    <contact:email/>
                </contact:disclose>
            </contact:create>
        </create>
        <extension>
            <brorg:create
                xmlns:brorg='urn:ietf:params:xml:ns:brorg-1.0'
                xsi:schemaLocation='urn:ietf:params:xml:ns:brorg-1.0
brorg-1.0.xsd'>
                <brorg:organization>58.230.170/0001-42</brorg:organization>
                <brorg:contact type='admin'>Teste</brorg:contact>
                <brorg:responsible>Abcd xxx</brorg:responsible>
            </brorg:create>
        </extension>
        <clTRID>ABC-12345</clTRID>
    </command>
</epp>

XML Resposta:
<?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="2306">
            <msg>Parameter value policy error</msg>
            <extValue>
                <value xmlns:brorg="urn:ietf:params:xml:ns:brorg-1.0">
                    <brorg:contact type="admin">Teste</brorg:contact>
                </value>
                <reason>Invalid contact handle</reason>
            </extValue>
        </result>
        <trID>
            <clTRID>ABC-12345</clTRID>
            <svTRID>20070723180003-118-0002</svTRID>
        </trID>
    </response>
</epp>

Qual seria a lista de valores válidos para esse campo?
Eu olhei no arquivo "brorg-1.0.xsd" contido na lib "libepp-nicbr-1.5" e os
valores válidos seriam:
<enumeration value="admin"/>
<enumeration value="billing"/>
<enumeration value="member"/>

Desde já agradeço,
Obrigado.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://eng.registro.br/pipermail/eppnicbr/attachments/20070723/71bfc35c/attachment.html>


More information about the eppnicbr mailing list