[Eppnicbr] Create Domain

Cesar Henrique Keiti Kuroiwa cesar at registro.br
Thu May 8 19:14:45 BRT 2014


Prezado Alexandro,

Havia uma falha no sistema que fazia com que algumas respostas de erro
não estivessem de acordo com o protocolo. Este problema já foi
resolvido tanto no ambiente de teste (beta) quanto no ambiente real.

Cesar
Registro.br

On Mon, May 05, 2014 at 10:45:17AM -0300, Alexandro Tommy wrote:
> Bom Dia pessoal,
> 
> Estou começando a trabalhar agora com a a lib e tenho várias dúvidas
> básicas, poderiam me ajudar?
> 
> 
>    1. *Como posso identificar os campos obrigatórios das funções?*
>    2. Para o "Domain Create" estou informando o* name, period, registrant,
>    organization e authInfo. *
>    Mas estou com o seguinte problema:
> *code [3000] message [The XML document is invalid] low level message [value
>    '' has length '0' which is less than minLength facet value '1'] **Alguém
>    sabe a qual campo ele se refere?* (o XML encontra-se no final do e-mail).
>    3. Apesar do erro retornado no "Domain Create", o ticket está sendo
>    criado para o domínio.* Isso significa que o registro já foi criado ou
>    ainda é preciso fazer mais alguma coisa?*
>    4. Na lib em C++, como pegar o XML de retorno da função?
>    Hoje consigo pegar os atributos da seguinte maneira:
> 
> >            BrDomainCreateRsp* rsp = domain_create.get_response();
> >
> >             map <Response::ResultCode, Response::ResultInfo> results;
> >             map <Response::ResultCode,
> >    Response::ResultInfo>::const_iterator r_it;
> >             results = rsp->get_result_list();
> >             r_it = results.begin();
> >
> >             cout << "\n"+ StrUtil::to_string("%d", (int)r_it->first);
> >             cout << "\n"+ r_it->second.msg + " - ";
> >             cout << "\n"+ rsp->get_name();
> >             cout << "\n"+ rsp->get_crDate();
> >             cout << "\n"+ rsp->get_exDate();
> >             cout << "\n"+ StrUtil::to_string("%d",
> >    rsp->get_ticketNumber());
> >
>    *Há algum modo de recuperar o XML montado?*
> 
> 
> 
> XML de requisição, Create Domain:
> 
> <?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>
> >       <domain:create
> >        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>uol.com.br</domain:name>
> >     <domain:period unit='y'>1</domain:period>
> >
> >         <domain:registrant>Leandro Bacellar</domain:registrant>
> >
> >     <domain:authInfo><domain:pw>BAWVBXMXKM</domain:pw></domain:authInfo>
> >       </domain:create>
> >     </create>
> >     <extension>
> >
> >     <brdomain:create xmlns:brdomain='urn:ietf:params:xml:ns:brdomain-1.0'
> > xsi:schemaLocation='urn:ietf:params:xml:ns:brdomain-1.0
> > brdomain-1.0.xsd'><brdomain:organization>059.335.976/0001-68</brdomain:organization></brdomain:create>
> >     </extension>
> >     <clTRID>2045512773</clTRID>
> >   </command>
> > </epp>
> >
> 
> 
> *Alexandro Tommy*
> Analista de Sistemas
> + 55 (19) 9 8106-0681
> alexandro.tommy at gmail.com
> ????????????????????????????????????

> _______________________________________________
> eppnicbr mailing list
> eppnicbr at eng.registro.br
> https://eng.registro.br/mailman/listinfo/eppnicbr



More information about the eppnicbr mailing list