[Eppnicbr] Duvida
Hugo Koji Kobayashi
koji at registro.br
Fri Aug 4 14:28:41 BRT 2006
Miguel,
Qual a string que você está passando no comando check? Aparentemente,
existe algum caractere não ISO-8859-1, pois na resposta não aparece o
número do documento:
<contact:id avail="0"></contact:id>
Deveria aparecer algo como:
<contact:id avail="1">00651642701</contact:id>
Fiz a mesma consulta e recebi a resposta correta (disponível):
<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>
<check>
<contact:check 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>00651642701</contact:id>
</contact:check>
</check>
<extension>
<brorg:check 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:cd>
<brorg:id>00651642701</brorg:id>
<brorg:organization>006.516.427-01</brorg:organization>
</brorg:cd>
</brorg:check>
</extension>
<clTRID>1957747793</clTRID>
</command>
</epp>
<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 lang="pt">Comando completado com sucesso</msg>
</result>
<resData>
<contact:chkData 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:cd>
<contact:id avail="1">00651642701</contact:id>
</contact:cd>
</contact:chkData>
</resData>
<trID>
<clTRID>1957747793</clTRID>
<svTRID>20060804172729-008-0002</svTRID>
</trID>
</response>
</epp>
Hugo
On Fri, Aug 04, 2006 at 01:18:22PM -0300, Miguel Angelo wrote:
> Amigos,
>
> Estou executando o seguinte comando:
>
> <?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>
> <check>
> <contact:check 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>00651642701</contact:id>
> </contact:check>
> </check>
> <extension>
> <brorg:check 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:cd>
> <brorg:id>00651642701</brorg:id>
> <brorg:organization>006.516.427-01</brorg:organization>
> </brorg:cd>
> </brorg:check>
> </extension>
> <clTRID>EHOSTING-1478436553</clTRID>
> </command>
> </epp>
>
> Mas estou recebendo:
>
> <?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 lang="pt">Comando completado com sucesso</msg>
> </result>
> <resData>
> <contact:chkData 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:cd>
> <contact:id avail="0"></contact:id>
> <contact:reason>Invalid document</contact:reason>
> </contact:cd>
> </contact:chkData>
> </resData>
> <trID>
> <clTRID>EHOSTING-1511275660</clTRID>
> <svTRID>20060804160328-043-0002</svTRID>
> </trID>
> </response>
> </epp>
>
> Não estou entendendo aonde estou errando, porque o cpf em questão é válido,
> a respota do epp server é positiva, mas diz que o documento é inválido.
> No shepp o retorno é o esperado, com o
> <contact:id avail="1"></contact:id>.
>
> Bom... Agradeço uma luz...
>
> Atenciosamente,
>
> Miguel Angelo
>
>
>
> _______________________________________________
> eppnicbr mailing list
> eppnicbr at eng.registro.br
> https://eng.registro.br/mailman/listinfo/eppnicbr
More information about the eppnicbr
mailing list