Ir para conteúdo
  • Cadastre-se

dev botao

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

Recommended Posts

Postado

Boa tarde, estou recebendo erro com status 297 na inutilização da NF-e somente no estado do Ceará, o meu XML está conforme abaixo:

<?xml version='1.0' encoding='UTF-8'?>
<soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
    <soapenv:Header>
        <nsh:MessageID xmlns:nsh="http://www.w3.org" />
    </soapenv:Header>
    <soapenv:Body>
        <ns1:nfeDadosMsg xmlns:ns1="http://www.portalfiscal.inf.br/nfe/wsdl/NFeInutilizacao4">
            <inutNFe xmlns="http://www.portalfiscal.inf.br/nfe" versao="4.00">
                <infInut Id="ID23180915927500014755001000000147000000150">
                    <tpAmb>2</tpAmb>
                    <xServ>INUTILIZAR</xServ>
                    <cUF>23</cUF>
                    <ano>18</ano>
                    <CNPJ>09159275000147</CNPJ>
                    <mod>55</mod>
                    <serie>1</serie>
                    <nNFIni>147</nNFIni>
                    <nNFFin>150</nNFFin>
                    <xJust>gsdf gdsf gdsf gdsfg sdkjfg kodsjfgl ksdjglkj sdg</xJust>
                </infInut>
                <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="#ID23180915927500014755001000000147000000150">
                            <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>5IY4lDm/wVeznee+dmQ0VYGVlVU=</DigestValue>
                        </Reference>
                    </SignedInfo>
                    <SignatureValue>onvBZweMQ86t1Vrkn2St2mKbKjhpJSQ09tpgQgIrlKuwwdZXpSv67BpYokfofrthfl25kPb+mQj+83YBizRv4UElLrh0cg50ME9P5JQASmF560V6VtAVCsl0uSnExy6Rn9lmW8eyzFWj015nzhKzxehbl3dgs3dmRvU9kM5ketWmq1mEsdDuS9GwOM8xO6pDZRmmom8GjrCdSR3O0U7X+kPk9ccUjlurBmGqzd01C/MaC3hd3CTqLCSm7bJQWRHrYvIuRkUNRDjcVUTNElmDgmp5vn2ROp193f0Djsl6O4aZ/7Au2i4d7rkMLi5Gl+hr/MD3Ju0X9ITTaiimAfQvJA==</SignatureValue>
                    <KeyInfo>
                        <X509Data>
                            <X509Certificate>MIIIAjCCBeqgAwIBAgIQCtxS4L4gicce5DZWKZkQBzANBgkqhkiG9w0BAQsFADB4MQswCQYDVQQGEwJCUjETMBEGA1UEChMKSUNQLUJyYXNpbDE2MDQGA1UECxMtU2VjcmV0YXJpYSBkYSBSZWNlaXRhIEZlZGVyYWwgZG8gQnJhc2lsIC0gUkZCMRwwGgYDVQQDExNBQyBDZXJ0aXNpZ24gUkZCIEc1MB4XDTE3MTIwNzE4MTcwNFoXDTE4MTIwNzE4MTcwNFowgegxCzAJBgNVBAYTAkJSMRMwEQYDVQQKDApJQ1AtQnJhc2lsMQswCQYDVQQIDAJDRTEVMBMGA1UEBwwMU2FvIEJlbmVkaXRvMTYwNAYDVQQLDC1TZWNyZXRhcmlhIGRhIFJlY2VpdGEgRmVkZXJhbCBkbyBCcmFzaWwgLSBSRkIxFjAUBgNVBAsMDVJGQiBlLUNOUEogQTExIjAgBgNVBAsMGUF1dGVudGljYWRvIHBvciBBUiBTZXJ2aXIxLDAqBgNVBAMMI0ogSSBERSBMSU1BIEZJTEhPIE1FOjA5MTU5Mjc1MDAwMTQ3MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAuL5y/4N+0ccGHBpWBpNYhkUBv1BmzADINE9PLIdAaOLkBbrX9BEklD1NEkRsYTri1iF7J1MCW3MwzJzf+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IKwYBBQUHAwIGCCsGAQUFBwMEMIGsBggrBgEFBQcBAQSBnzCBnDBfBggrBgEFBQcwAoZTaHR0cDovL2ljcC1icmFzaWwuY2VydGlzaWduLmNvbS5ici9yZXBvc2l0b3Jpby9jZXJ0aWZpY2Fkb3MvQUNfQ2VydGlzaWduX1JGQl9HNS5wN2MwOQYIKwYBBQUHMAGGLWh0dHA6Ly9vY3NwLWFjLWNlcnRpc2lnbi1yZmIuY2VydGlzaWduLmNvbS5icjANBgkqhkiG9w0BAQsFAAOCAgEAsowbHZOLj9arTlHhpdiPuQOh9AUbHgiqKsnTO5WPol1zjKiD3waeVyavdod5YARvJTWM1NdW5/3/+II2X82jr3IeXQkdgFO0XWnpUeof/79H/TYJOiDhSkxZIPePiQ4tf2FSfmPfVPDFjfd5khjf01ucDazz50aVKBIL8QlmayB5IRLlJFpjeHGV9ie5WHjeEeleuFk3wUHpz++mccR7xCD1ymbnuet8jVvt8HtbZrPBASkZPF/9ddHZegaZQrpzJa+k+dSdbtCxMZbarwBah6G+2HLhCeBIgjd1ZtL0YFvTsj0p5tcntbmV7LNkJdBPPpWKM5jpEkX06Ju5WEI3D3jhr6RXaxFuLIiwS8hYuEA0aSWv073MimJiIB78NiHQyyWGa3fbHBQB5fDVlDQMm4WSvkEFEgkCZf2mYCrfH6uU4Ab/B0bxvXCKpNMkC7Jjz37tcG21k0ocLFp9LsEbmoz7rzgEVMIW5d4lXLhKJshrGiJU1wqRlElFEEv1/hb58eoJ0/qZ9ab5zMnIq56n4IRUy+wWX+E4bCs5YBCfobFpjKfHk9eyqru58zVoAW+E/x2f6jiUO3yOs/VI6BKacOInvMVmeV0y4zxeNOoZLO3d7Ni6iwS4AhVXbUsSOcRnOWT8uZXWhGj2zeUqFKKSKyDgDMmIZmEVP0XnEocZUDk=</X509Certificate>
                        </X509Data>
                    </KeyInfo>
                </Signature>
            </inutNFe>
        </ns1:nfeDadosMsg>
    </soapenv:Body>
</soapenv:Envelope>

Passei o conteúdo da tag <inutNFe> no validador e está OK:

image.png.7dcba82bfde5037c5c754144513f86b4.png

Já fiz várias modificações nas tags do SOAP e o retorno é sempre o mesmo:

<retInutNFe xmlns="http://www.portalfiscal.inf.br/nfe">
    <infInut>
        <tpAmb>2</tpAmb>
        <verAplic>CE_NFe_V4.0.13</verAplic>
        <cStat>297</cStat>
        <xMotivo>Rejeicao: Assinatura difere do calculado</xMotivo>
        <cUF>23</cUF>
        <dhRecbto>2018-09-06T16:55:21-03:00</dhRecbto>
    </infInut>
</retInutNFe>

 

Agradeço se alguém puder passar um xml de inutilização que esteja aprovando no Ceará ou possa me dizer o que pode estar errado nos meus XMLs. O estranho é que os demais estados aprovam... to o dia inteiro em cima disso e não consegui resolver ainda.

 

  • Moderadores
Postado
Em 06/09/2018 at 16:08, felipedamiani disse:

Boa tarde, estou recebendo erro com status 297 na inutilização da NF-e somente no estado do Ceará, o meu XML está conforme abaixo:

O XML enviado para o webservice não deve ter quebras de linhas.

Está com a propriedade IdentarXML ativada?

  • Curtir 1
Equipe ACBr BigWings
Ajude o Projeto ACBr crescer - Assine o SAC

Projeto ACBr

 

 

Postado

Bom dia BigWinds, o XML é enviado sem quebra de linhas, postei aqui formatado para melhor visualização. Aproveitando, encontrei a solução, ficou da seguinte maneira:

<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
   <soap:Header/>
   <soap:Body xmlns:nfe="http://www.portalfiscal.inf.br/nfe/wsdl/NFeInutilizacao4">
      <nfe:nfeDadosMsg>
         <inutNFe versao="4.00" xmlns="http://www.portalfiscal.inf.br/nfe"><infInut Id="ID23180915927500014755001000000147000000150"><tpAmb>2</tpAmb><xServ>INUTILIZAR</xServ><cUF>23</cUF><ano>18</ano><CNPJ>09159275000147</CNPJ><mod>55</mod><serie>1</serie><nNFIni>147</nNFIni><nNFFin>150</nNFFin><xJust>gsdf gdsf gdsf gdsfg sdkjfg kodsjfgl ksdjglkj sdg</xJust></infInut><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="#ID23180915927500014755001000000147000000150"><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>5IY4lDm/wVeznee+dmQ0VYGVlVU=</DigestValue></Reference></SignedInfo><SignatureValue>onvBZweMQ86t1Vrkn2St2mKbKjhpJSQ09tpgQgIrlKuwwdZXpSv67BpYokfofrthfl25kPb+mQj+83YBizRv4UElLrh0cg50ME9P5JQASmF560V6VtAVCsl0uSnExy6Rn9lmW8eyzFWj015nzhKzxehbl3dgs3dmRvU9kM5ketWmq1mEsdDuS9GwOM8xO6pDZRmmom8GjrCdSR3O0U7X+kPk9ccUjlurBmGqzd01C/MaC3hd3CTqLCSm7bJQWRHrYvIuRkUNRDjcVUTNElmDgmp5vn2ROp193f0Djsl6O4aZ/7Au2i4d7rkMLi5Gl+hr/MD3Ju0X9ITTaiimAfQvJA==</SignatureValue><KeyInfo><X509Data><X509Certificate>MIIIAjCCBeqgAwIBAgIQCtxS4L4gicce5DZWKZkQBzANBgkqhkiG9w0BAQsFADB4MQswCQYDVQQGEwJCUjETMBEGA1UEChMKSUNQLUJyYXNpbDE2MDQGA1UECxMtU2VjcmV0YXJpYSBkYSBSZWNlaXRhIEZlZGVyYWwgZG8gQnJhc2lsIC0gUkZCMRwwGgYDVQQDExNBQyBDZXJ0aXNpZ24gUkZCIEc1MB4XDTE3MTIwNzE4MTcwNFoXDTE4MTIwNzE4MTcwNFowgegxCzAJBgNVBAYTAkJSMRMwEQYDVQQKDApJQ1AtQnJhc2lsMQswCQYDVQQIDAJDRTEVMBMGA1UEBwwMU2FvIEJlbmVkaXRvMTYwNAYDVQQLDC1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0ocLFp9LsEbmoz7rzgEVMIW5d4lXLhKJshrGiJU1wqRlElFEEv1/hb58eoJ0/qZ9ab5zMnIq56n4IRUy+wWX+E4bCs5YBCfobFpjKfHk9eyqru58zVoAW+E/x2f6jiUO3yOs/VI6BKacOInvMVmeV0y4zxeNOoZLO3d7Ni6iwS4AhVXbUsSOcRnOWT8uZXWhGj2zeUqFKKSKyDgDMmIZmEVP0XnEocZUDk=</X509Certificate></X509Data></KeyInfo></Signature></inutNFe>
      </nfe:nfeDadosMsg>
   </soap:Body>
</soap:Envelope>

Note que passei o namespace xmlns:nfe="http://www.portalfiscal.inf.br/nfe/wsdl/NFeInutilizacao4" da tag <nfeDadosMsg> para a tag <soap:Body>.

Emito em todos os estados da forma que postei na primeira mensagem, só no ceará tive esse problema.

  • Moderadores
Postado
1 hora atrás, felipedamiani disse:

Note que passei o namespace xmlns:nfe="http://www.portalfiscal.inf.br/nfe/wsdl/NFeInutilizacao4" da tag <nfeDadosMsg> para a tag <soap:Body>. 

Fez alguma alteração nos fontes do componente?

Se fez anexe aqui para análise.

  • Curtir 1
Equipe ACBr BigWings
Ajude o Projeto ACBr crescer - Assine o SAC

Projeto ACBr

 

 

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

Crie uma conta ou entre para comentar

Você precisar ser um membro para fazer um comentário

Criar uma conta

Crie uma nova conta em nossa comunidade. É fácil!

Crie uma nova conta

Entrar

Já tem uma conta? Faça o login.

Entrar Agora
×
×
  • Criar Novo...

Informação Importante

Colocamos cookies em seu dispositivo para ajudar a tornar este site melhor. Você pode ajustar suas configurações de cookies, caso contrário, assumiremos que você está bem para continuar.