none
NF Assinatura difere do calculado

    Question

  • Pessoal, estou tentado validar o xml da NFe, porem estou tendo o erro de "Assinatura difere do calculado", já procurei de tudo e não consigo entender o que pode ser, se alguém puder me esclarecer fico grato

    xml:

    <?xml version="1.0" encoding="utf-8"?><enviNFe versao="2.00" xmlns="http://www.portalfiscal.inf.br/nfe"><idLote>20124106114154</idLote><NFe><infNFe versao="2.00" Id="NFe43120911020796000160550000000000011000000018"><ide><cUF>43</cUF><cNF>00000001</cNF><natOp>venda de mercadorias</natOp><indPag>0</indPag><mod>55</mod><serie>0</serie><nNF>1</nNF><dEmi>2012-09-22</dEmi><dSaiEnt>2012-09-22</dSaiEnt><hSaiEnt>10:02:41</hSaiEnt><tpNF>1</tpNF><cMunFG>4316907</cMunFG><tpImp>1</tpImp><tpEmis>1</tpEmis><cDV>8</cDV><tpAmb>2</tpAmb><finNFe>1</finNFe><procEmi>0</procEmi><verProc>2.00</verProc></ide><emit><CNPJ>11020796000160</CNPJ><xNome>DEVCOMPY SOLUCOES EM INFORMATICA LTDA</xNome><xFant>DEVCOMPY SOLUCOES EM INFORMATICA LTDA</xFant><enderEmit><xLgr>RUA PINTO BANDEIRA</xLgr><nro>123</nro><xCpl>SALA 01</xCpl><xBairro>DORES</xBairro><cMun>4316907</cMun><xMun>Santa Maria</xMun><UF>RS</UF><CEP>97050610</CEP></enderEmit><IE>1090345515</IE><CRT>3</CRT></emit><dest><CNPJ>99999999000191</CNPJ><xNome>NF-E EMITIDA EM AMBIENTE DE HOMOLOGACAO - SEM VALOR FISCAL</xNome><enderDest><xLgr>RUA NOSSA SENHORA DAS GRACAS</xLgr><nro>835</nro><xBairro>SANTA MARTA</xBairro><cMun>4316907</cMun><xMun>SANTA MARIA</xMun><UF>RS</UF><CEP>97035265</CEP><xPais>BRASIL</xPais><fone>5591519990</fone></enderDest><IE /><email>cosme@ms.senac.br</email></dest><det nItem="1"><prod><cProd>1</cProd><cEAN /><xProd>Livro Big Brother Fiscal</xProd><NCM>49019900</NCM><CFOP>5101</CFOP><uCom>UN</uCom><qCom>36.0000</qCom><vUnCom>39.2000000000</vUnCom><vProd>1411.20</vProd><cEANTrib /><uTrib>000000</uTrib><qTrib>36.0000</qTrib><vUnTrib>39.2000000000</vUnTrib><vFrete>88.40</vFrete><indTot>1</indTot><xPed>8483</xPed></prod><imposto><ICMS><ICMS40><orig>0</orig><CST>41</CST><vICMS>10.00</vICMS><motDesICMS>9</motDesICMS></ICMS40></ICMS><PIS><PISNT><CST>07</CST></PISNT></PIS><COFINS><COFINSNT><CST>07</CST></COFINSNT></COFINS></imposto></det><total><ICMSTot><vBC>0.00</vBC><vICMS>0.00</vICMS><vBCST>0.00</vBCST><vST>0.00</vST><vProd>1411.20</vProd><vFrete>88.40</vFrete><vSeg>0.00</vSeg><vDesc>0.00</vDesc><vII>0.00</vII><vIPI>0.00</vIPI><vPIS>0.00</vPIS><vCOFINS>0.00</vCOFINS><vOutro>0.00</vOutro><vNF>1499.60</vNF></ICMSTot></total><transp><modFrete>1</modFrete></transp></infNFe><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="#NFe43120911020796000160550000000000011000000018"><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>v6HB+VeapQgJerUDAv+D+NmBZKY=</DigestValue></Reference></SignedInfo><SignatureValue>OuxGWrp8brCm2ZkSLUaKtuRWSyAxTe9SlBG2GzO2bHqRUCBiZWWZLDywWbOjxTwQi5IF3b15CUqXTObqD5oreafW69I7jONd+SD5P+1HI1c/DHEqLTzLIBJs5lJvZB1s3MTkoFLl+n1bpODZjWpSdIVqCTCns3i58RoE0JT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VHSUEFjAUBggrBgEFBQcDAgYIKwYBBQUHAwQwgZsGCCsGAQUFBwEBBIGOMIGLMF8GCCsGAQUFBzAChlNodHRwOi8vaWNwLWJyYXNpbC5jZXJ0aXNpZ24uY29tLmJyL3JlcG9zaXRvcmlvL2NlcnRpZmljYWRvcy9BQ19DZXJ0aXNpZ25fUkZCX0c0LnA3YzAoBggrBgEFBQcwAYYcaHR0cDovL29jc3AuY2VydGlzaWduLmNvbS5icjANBgkqhkiG9w0BAQsFAAOCAgEAwR7ZDj2oN1Solc1QrPnbsIIEEPM/U+KFp7DO9qjFHkfij+uOrQVuqE5ev7f2RuxVtDDgW8T6Zi4ATb/IUvB0NB0M0muBT08gxzjYWVCf5Mj3Npoy7k/dvWiE/ebaZfcMtgVnVznkBcNKjcAlCIagrrr+6yNd+p6SZHl4Dv6mBi2UjxVZ2lEVe0hTdgc+aFPd6P/tJZtPdfORjfgfGaKsyQDbke2C9M4UJHyNQGRi3fbT6NRk7uWqtCvBNf7Gs+OUpUShnWN33pmm+kpzYOV15/iuFfhr4HPUXAs+OBMQAi7hwPhnpq6cDBacPSf/KnYL7WASoAuieX7ImYLAWRQWP82YPRREbFrAgz6PZTKJvRMhZtWUO7axZ6NROf6Vq0GymIyojV36ebXHaeGVNnvbtifuM2Q5XB0vstPXxYPKMkEvOrEBV6gByYhret/qn312h0bwSCVKrZ72OBbpug9CAgN8OHBhrqD394DnDfB1L5xSYXrHME/VSHvp+U1x0raOfXz8gWu8owkV0TQsuMOJ0ZqNSJWxtw0FrR5RsRQ6H315UAFwHzl8L8e8TyQXFfYJRomY5/9oKam5jU8ffVsbRwXALGXs85wiz841CKmvzS20GOVQtX9XNumgz0HeOm3ja/wZ2q+J61F2qJdxKEdMdc5NUWmAmZWNxjnnO74B06A=</X509Certificate></X509Data></KeyInfo></Signature></NFe></enviNFe>

    Saturday, October 06, 2012 2:50 PM

Answers

  • Caros amigos, depois de tanto estudar e fazer testes, descobri que o problema era na hora que serializava a classe onde estava adicionando namespaces que não devia e mesmo tirando manualmente o sistema rejeitava.

    vou providenciar um exemplo bem simples para disponibilizar para a comunidade.

    • Marked as answer by Pablotdv Saturday, October 06, 2012 5:32 PM
    Saturday, October 06, 2012 5:32 PM