Jump to content

Delphi Enterprise 
pela METADE DO PREÇO

botao_delphi.png

 

 

tp_550_logo.png Homologação ACBr Apresenta:
Nova  Impressora
TP-550

botao_saibamais.png

 

 

Curso Dominando o ACBrMonitor
Novo Módulo Soluções de Varejo
Assine o SAC ACBr em qualquer plano e tenha acesso

Saiba Mais

Balança SM100 performance surpreendente

Tecnologia Japonesa   Teclado e Visor resistentes a água
Consumo inteligente de etiquetas   Baixo custo de manutenção
Comunicação Ethernet e WIFI independentes

Saiba Mais

Impressora de Etiquetas ELGIN - L42 PRO

Protocolos PPLA, PPLB, ZPL, EPL (automático)
Porta USB padrão Opcionais: Ethernet, Serial, Paralela
Sensor de Etiquetas Móvel Garantia de 18 meses

Saiba mais

EFV

ANSWERED XML inválido: Erro 1003: Assinatura digital inválida

Recommended Posts

Gostaria de saber como foi resolvido o problema do erro XML inválido: Erro 1003: Assinatura digital inválida, se alguém puder me passar pois no tópico foi encerrado,  estou enfrentando este problema com um cliente.  

Share this post


Link to post
Share on other sites

Qual o Link do outro tópico ?


Consultor SAC ACBr

Daniel Simões de Almeida
Ajude o Projeto ACBr crescer - Assine o SAC

Projeto ACBr     Telefone:(15) 2105-0750 WhatsApp(15)99790-2976.

Share this post


Link to post
Share on other sites

Bom dia.

No tópico foi relatado que o problema era do lado da SEFAZ-SC.

Att.


Consultora SAC ACBr

Juliana Tamizou
Ajude o Projeto ACBr crescer - Assine o SAC

Projeto ACBr     Telefone:(15) 2105-0750 WhatsApp(15)99790-2976.

Projeto ACBr - A maior comunidade Open Source de Automação Comercial do Brasil

Share this post


Link to post
Share on other sites

Boa tarde.

Mas continua havendo rejeição do arquivo?

Att.


Consultora SAC ACBr

Juliana Tamizou
Ajude o Projeto ACBr crescer - Assine o SAC

Projeto ACBr     Telefone:(15) 2105-0750 WhatsApp(15)99790-2976.

Projeto ACBr - A maior comunidade Open Source de Automação Comercial do Brasil

Share this post


Link to post
Share on other sites

mas quanto a norma que temos que bloquear o ecf apos 10 reduções z não enviadas como devemos proceder

Share this post


Link to post
Share on other sites

Boa tarde.

Sua ultima postagem não parece ter relação com o assunto do tópico, nestes casos sempre crie um novo tópico.

Att.


Consultora SAC ACBr

Juliana Tamizou
Ajude o Projeto ACBr crescer - Assine o SAC

Projeto ACBr     Telefone:(15) 2105-0750 WhatsApp(15)99790-2976.

Projeto ACBr - A maior comunidade Open Source de Automação Comercial do Brasil

Share this post


Link to post
Share on other sites

Juliana obrigado pela atenção depois de muito penar percebi que o problema esta na assinatura digital quando faço a validação pelo componente a assinatura digital sai de uma maneira esta manira que esta sendo assinado pelo componente o sefaz esta dando como inválida

<Signature xmlns="http://www.w3.org/2000/09/xmldsig#"><SignedInfo><CanonicalizationMethod Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315"/><SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"/><Reference URI=""><Transforms><Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature"/><Transform Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315"/></Transforms><DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/><DigestValue>za1LczhwmFgiFKvatbrgQ62W4LQ=</DigestValue></Reference></SignedInfo><SignatureValue>D4i7JsthPFTPcn2QzYN2G86TR+7sELORhcms9kuTuYhwKy8+Fn6VWl57JmKr2EZ0f8GpluSM5ch+5n1493L3clQgnQNezNPGFVCN1yjDFMg5s2/XrP4P3ylJUX0ClxVXIN2rsjzR2PQC4X1xRCAwx0KotfYcBNPSxP6QYgiJbC6k07j+SCfZ0g5oqy2PGLgpEAbNkPuV2FT4vscHIW9oJSVmn+w/BSuDIDb0AXjI56QpKhxTS6eZMZsvMMryL3vO2GVMyR/pY8SFS6D9BDY8/CvVp535ozGkHMSSDTYKlavZjUDyGcEyvRO0VrqXvgfCtCctkSVCXxuC3VP9XbnpuQ==</SignatureValue><KeyInfo><X509Data><X509Certificate>MIIH/DCCBeSgAwIBAgIQUKlX1tQEptLwJujYcczd0D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3dSgXcV2FptfVjhXguUxOoTwhbdIIBi1jnGk2pqEGCvBYQn0koBjxZx0jh08cfmcVYVZAqWKiIKjAY6HSJo6TfSDPSvkHluXaq6x3h0Tub0FkuQl7qqghXhTcuNYV4qs0atWTJi36oZcKEqEzP2FE939tM+nbFV8w7oejOJykoeyIXrjEk4DXsr7I8GzkzCTFldq80945KnW2ZCf9rOWLpb73jmLOWwZIYKjflfQNkp9OqfV3JKyjSCK94XT9aUigMNRltZZ00ceVrTbCamoYBj6bUg6ws4Gqg2uuWAzcmj4oIfDtgRRU86IYptfnUxx692UovgweX3xCKQJzH2dbIQl9iBEQYyoVY3ooQAcvk0Ud2JC5V7dnMLh4W5jXbYigZC5Zk+hL91P8EJrurPQoChOs4UkEOK0ng8M59l9i/9eR8fpl08+W3tzDDVino37bSM+eiqQCyX6wVYR3iYynDV/bi9gNE8BrLQw4xXMSVetE7Hxd82o8h0RGUssl+m6YTfktT7L087XMhJ3eVHUx18NImcjcx5I3o4iB4PPyEzdScIue44CWCguMeyjfIbYo=</X509Certificate></X509Data></KeyInfo></Signature>

 

e se eu criar a assinatura através de outra maneira o sefaz esta validando 

 

Signature xmlns="http://www.w3.org/2000/09/xmldsig#"><SignedInfo><CanonicalizationMethod Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315" /><SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1" /><Reference URI=""><Transforms><Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature" /><Transform Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315" /></Transforms><DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" /><DigestValue>cWLOaluBCbcjilBQrLiJzDEdW0c=</DigestValue></Reference></SignedInfo><SignatureValue>vgNQDZ8Z2pUFWYW9TAWyAPc3ssrjB6zlUulhi/wuVBMCMqQaIJj5Ws6yL2pJK/hFFUbspYN5UPQI61BmcDFqLZPjgc6xlxfBgOjboGoaqM1DFmvnP6YqaCWKT6RuNUI+JsECRqzlZDcJnNI71+qfmRjZYKPJ4sJBVOuXSmPS2jq7VsLqCrxitdn/QRPfM4bBlZiMUZUXFVsRgyLYZyHhizxDNalN3EBqScHPEtkmWKhzsCrKYghYEz4UtLGCG/X50qLm74H9Vju36y/7PdlmAu0lrz65jyhPPmXzauB9JkD/wYrH5eIgEC/RvjyQsTIwhOIi6zvUGJkTZGlxn3LhrA==</SignatureValue><KeyInfo><KeyValue><RSAKeyValue><Modulus>yLJCsRYD28RRfsAYWnLphZIdbTYiGp5y3E3VxiB245RJk4EmXYhxLtB6sO4gC+vsfFVoFvs/tQhgWRXLlmBzuKLH1LBNdWg5wAGWBPgWsWOFqxpWass7DnA++gwTd55mc+adFKUTbeDDs45oCKTieKF9ElLSABg/3/Ot2vUJPUcIJnVK+9Qhvx+5b8YAH2hlQwfQ3mGafOKmV5kru0I1VLg+5w1frHbVf0co+cr2ywObeepkf/f+/7NgXCDwwdoORZrp79fKUlKx0/V5ZRrGKPKFuA/M90p9OI1784e/twfxdrkGwhDEg3OdVyedH9sQRFUQ/DdLh8EOGrAhzmQyNw==</Modulus><Exponent>AQAB</Exponent></RSAKeyValue></KeyValue><X509Data><X509Certificate>MIIH/DCCBeSgAwIBAgIQUKlX1tQEptLwJujYcczd0DANBgkqhkiG9w0BAQsFADB4MQswCQYDVQQGEwJCUjETMBEGA1UEChMKSUNQLUJyYXNpbDE2MDQGA1UECxMtU2VjcmV0YXJpYSBkYSBSZWNlaXRhIEZlZGVyYWwgZG8gQnJhc2lsIC0gUkZCMRwwGgYDVQQDExNBQyBDZXJ0aXNpZ24gUkZCIEc1MB4XDTE5MDgxNjEyNDM1MloXDTIwMDgxNTEyNDM1MlowgecxCzAJBgNVBAYTAkJSMRMwEQYDVQQKDApJQ1AtQnJhc2lsMQswCQYDVQQIDAJTQzERMA8GA1UEBwwIQ2FwaW56YWwxNjA0BgNVBAsMLVNlY3JldGFyaWEgZGEgUmVjZWl0YSBGZWRlcmFsIGR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5Zk+hL91P8EJrurPQoChOs4UkEOK0ng8M59l9i/9eR8fpl08+W3tzDDVino37bSM+eiqQCyX6wVYR3iYynDV/bi9gNE8BrLQw4xXMSVetE7Hxd82o8h0RGUssl+m6YTfktT7L087XMhJ3eVHUx18NImcjcx5I3o4iB4PPyEzdScIue44CWCguMeyjfIbYo=</X509Certificate></X509Data></KeyInfo></Signature>

 

a Principio estou enviando o arquivo da seguinte forma

ACBrBlocoX.WebServices.TransmitirArquivoBlocoX.Clear;
          ACBrBlocoX.WebServices.TransmitirArquivoBlocoX.XML  := sqlBlocoXRdzARQUIVO.AsString;

          if ACBrBlocoX.WebServices.TransmitirArquivoBlocoX.Executar then
          begin
            sqlBlocoXRdz.Edit;
            sqlBlocoXRdzRECIBO.AsString := ACBrBlocoX.WebServices.TransmitirArquivoBlocoX.Recibo;
            sqlBlocoXRdz.Post;

            ShowMessage('Arquivo enviado com sucesso!');
          end
          else
          begin
            raise Exception.Create(
              'Não foi possível transmitir o arquivo!' + sLineBreak +
              ACBrBlocoX.WebServices.TransmitirArquivoBlocoX.RetWS
            );
          end;

poderia ser a forma que estou validando este arquivo, não sei se seria isso mesmo ou teria algo a mais que poderia ser feito.

Share this post


Link to post
Share on other sites

Estou com o mesmo problema, no momento que vou enviar o estoque.

Erro 1003: Assinatura digital inválida              

Estou assinando dessa forma e até então estava ok, mas em apenas 1 cliente ocorre isso.
As reduções Z estão OK.

Share this post


Link to post
Share on other sites

Ola Evandrobk no meu caso depois de muitos testes percebi que estava passando as informações erradas para o componente, alterei a forma de abrir o xml e funcionou

  • Like 2

Share this post


Link to post
Share on other sites

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...