Jump to content

dev botao

  • Este tópico foi criado há 2708 dias atrás.
  • Talvez seja melhor você criar um NOVO TÓPICO do que postar uma resposta aqui.

Recommended Posts

Posted

Pessoal, estou gerando o evento S-1010 onde estou testando enviar duas rubricas ao mesmo tempo, só que não estou conseguindo pois da erro de estrutura. Quando envio somente um a inclusão é feita sem problemas. Segue exemplo com um registro que da certo e outro exemplo com 2 registro que da erro de estrutura.

Exemplo com um registro que é enviado OK :
 
- <envioLoteEventos grupo="1">
- <ideEmpregador>
  <tpInsc>1</tpInsc>
  <nrInsc>10882777</nrInsc>
  </ideEmpregador>
- <ideTransmissor>
  <tpInsc>1</tpInsc>
  <nrInsc>10882777000180</nrInsc>
  </ideTransmissor>
- <eventos>
- <evento Id="xxx">
- <evtTabRubrica Id="xxx">
- <ideEvento>
  <tpAmb>2</tpAmb>
  <procEmi>1</procEmi>
  <verProc>1.0.2.2</verProc>
  </ideEvento>
- <ideEmpregador>
  <tpInsc>1</tpInsc>
  <nrInsc>xxx</nrInsc>
  </ideEmpregador>
- <infoRubrica>
- <inclusao>
- <ideRubrica>
  <codRubr>02-002</codRubr>
  <ideTabRubr>02</ideTabRubr>
  <iniValid>2017-08</iniValid>
  </ideRubrica>
- <dadosRubrica>
  <dscRubr>HORAS NORMAIS</dscRubr>
  <natRubr>1000</natRubr>
  <tpRubr>1</tpRubr>
  <codIncCP>11</codIncCP>
  <codIncIRRF>11</codIncIRRF>
  <codIncFGTS>11</codIncFGTS>
  <codIncSIND>11</codIncSIND>
  <repDSR>S</repDSR>
  <rep13>S</rep13>
  <repFerias>S</repFerias>
  <repAviso>S</repAviso>
  </dadosRubrica>
  </inclusao>
  </infoRubrica>
  </evtTabRubrica>
- <SignedInfo>
  <CanonicalizationMethod Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315" />
  <SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256" />
- <Reference URI="">
- <Transforms>
  </Transforms>
  <DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256" />
  <DigestValue>...gTuDgWu3A3xXlAAmd...</DigestValue>
  </Reference>
  </SignedInfo>
  <SignatureValue>...+Lsv0ktgiroufiKwVZVM30hzqDQvpGFZqPzHnDLpHQjhXWQO5CxkMZvK9DRow...</SignatureValue>
- <KeyInfo>
- <X509Data>
  <X509Certificate>.../dXU0bCYFVldYIHSVS5fPvQASgaTYAxgCwk1+R2P3joGe2BySxf70PYJM1/Z6RUrtq5KSsIByfFGq/...</X509Certificate>
  </X509Data>
  </KeyInfo>
  </Signature>
  </eSocial>
  </evento>
  </eventos>
  </envioLoteEventos>
  </eSocial>
 
Exemplo com 2 Registros que da erro de estrutura :
 
- <envioLoteEventos grupo="1">
- <ideEmpregador>
  <tpInsc>1</tpInsc>
  <nrInsc>10882777</nrInsc>
  </ideEmpregador>
- <ideTransmissor>
  <tpInsc>1</tpInsc>
  <nrInsc>10882777000180</nrInsc>
  </ideTransmissor>
- <eventos>
- <evento Id="xxx">
- <evtTabRubrica Id="xxx">
- <ideEvento>
  <tpAmb>2</tpAmb>
  <procEmi>1</procEmi>
  <verProc>1.0.2.2</verProc>
  </ideEvento>
- <ideEmpregador>
  <tpInsc>1</tpInsc>
  <nrInsc>xxx</nrInsc>
  </ideEmpregador>
- <infoRubrica>
- <inclusao>
- <ideRubrica>
  <codRubr>02-002</codRubr>
  <ideTabRubr>02</ideTabRubr>
  <iniValid>2017-08</iniValid>
  </ideRubrica>
- <dadosRubrica>
  <dscRubr>HORAS NORMAIS</dscRubr>
  <natRubr>1000</natRubr>
  <tpRubr>1</tpRubr>
  <codIncCP>11</codIncCP>
  <codIncIRRF>11</codIncIRRF>
  <codIncFGTS>11</codIncFGTS>
  <codIncSIND>11</codIncSIND>
  <repDSR>S</repDSR>
  <rep13>S</rep13>
  <repFerias>S</repFerias>
  <repAviso>S</repAviso>
  </dadosRubrica>
  </inclusao>
- <inclusao>
- <ideRubrica>
  <codRubr>02-400</codRubr>
  <ideTabRubr>02</ideTabRubr>
  <iniValid>2017-08</iniValid>
  </ideRubrica>
- <dadosRubrica>
  <dscRubr>ADIANTAMENTO CLAUSULA 5.2 DA CCT</dscRubr>
  <natRubr>5501</natRubr>
  <tpRubr>1</tpRubr>
  <codIncCP>00</codIncCP>
  <codIncIRRF>00</codIncIRRF>
  <codIncFGTS>00</codIncFGTS>
  <codIncSIND>00</codIncSIND>
  <repDSR>N</repDSR>
  <rep13>N</rep13>
  <repFerias>N</repFerias>
  <repAviso>N</repAviso>
  </dadosRubrica>
  </inclusao>
  </infoRubrica>
  </evtTabRubrica>
- <SignedInfo>
  <CanonicalizationMethod Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315" />
  <SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256" />
- <Reference URI="">
- <Transforms>
  </Transforms>
  <DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256" />
  <DigestValue>...+JB5EcjFhXLOGbCnfs...</DigestValue>
  </Reference>
  </SignedInfo>
  <SignatureValue>...+e0D2fGqLg4OyhpXHte7EEJXQ+pjOzGF7h+HlCyo5g86N91LARu7Nj/HoF56Ie8TqXdg/nPNvicTieKJHevKpP4hXKBvQNVtHk/8yYK2C2tiqi+...</SignatureValue>
- <KeyInfo>
- <X509Data>
  <X509Certificate>...+wV7+CGKly1DJ/e0jaF/lhKKOW0aUtJPpYV+EZ592gF2+QH7foucKO5IFtLGTS0H9uiM+F8KuFLv0FjP3MOom12caGP+ytjtQk9czigA+CPfbDp8WyxX76hRYC2+...</X509Certificate>
  </X509Data>
  </KeyInfo>
  </Signature>
  </eSocial>
  </evento>
  </eventos>
  </envioLoteEventos>
  </eSocial>
 
Alguém tem alguma ideia de como mandar mais de um registro, no caso, mais de uma rubrica ???
 
 
  • Este tópico foi criado há 2708 dias atrás.
  • Talvez seja melhor você criar um NOVO TÓPICO do que postar uma resposta aqui.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.

The popup will be closed in 10 seconds...