Ir para conteúdo
  • Cadastre-se

dev botao

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

Recommended Posts

Postado

Bom dia, preciso de ajuda estou tentando enviar para aprovação evento de insucesso xml que estou enviando

 

<?xml version="1.0" encoding="utf-8"?>
<envEvento xmlns="http://www.portalfiscal.inf.br/nfe" versao="1.00">
    <idLote>16586</idLote>
    <evento versao="1.00" xmlns="http://www.portalfiscal.inf.br/nfe">
        <infEvento Id="ID1101924124067630215700013355001000016587100016586001">
            <cOrgao>91</cOrgao>
            <tpAmb>2</tpAmb>
            <CNPJ>36636746000133</CNPJ>
            <chNFe>41240676302157000133550010000165871000165860</chNFe>
            <dhEvento>2024-06-25T11:47:50-03:00</dhEvento>
            <tpEvento>110192</tpEvento>
            <nSeqEvento>1</nSeqEvento>
            <verEvento>1.00</verEvento>
            <detEvento versao="">
                <descEvento>Insucesso na Entrega da NF-e</descEvento>
                <cOrgaoAutor>41</cOrgaoAutor>
                <verAplic>1.0</verAplic>
                <dhTentativaEntrega>2024-06-19T14:01:00 -03:00</dhTentativaEntrega>
                <tpMotivo>1</tpMotivo>
                <hashTentativaEntrega>41240676302157000133550010000165871000165860/9j/4AAQSkZJRgABAQEAeAB4AAD/2wBDAAMCAgMCAgMDAwMEAwMEBQgFBQQEBQoH
BwYIDAoMDAsKCwsNDhIQDQ4RDgsLEBYQERMUFRUVDA8XGBYUGBIUFRT/2wBDAQME
BAUEBQkFBQkUDQsNFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQU
FBQUFBQUFBQUFBQUFBT/wAARCAAiAGkDASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEA
AAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIh
MUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6
Q0RFRkdISUpTVFVW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eutk0kkjnXbpb5Wa/X8Fe+t/FfhE9j4Tk
u72zXx94ll8Xa7tudS8QaElg8UqWYH2iSBba2MUJWBYvMaLLPt6gg15J4f1DT9G0
v9nfU9S0S71y1spNan22Ni97NbMAwWdII1aRypIH7tWYbsgcEj6u8VeE4fGWiz6V
qFrrsVpMVLtpst7YTcHOBNblJAOOQGAI4ORVSz+HWi6bJ4de08O3NoPDsD22lxwW
k6JaxugRlVANpG1QOQcY4qJU3K1tLWt8rf5aeu6sCmuvW9/x/wA/w2PnGTQ9X+3r
48HhLVx4Mk+IY199C/s2U34tV082i3v2Hb5oJuwLjywhlxh9u7gd58DdSste+NXx
e1bTtFvNHtbwaQ5a/sns5rpxBKDK8MgWRDjaMSKr4UHGCpPrnirwjF4y0k6dfweI
Le3LrJv0q4v9OmyOn722aOTHqN2D3FQeDPAOm/D/AE2ay0XSNUiS4ma5uLi6W7u7
m5lIAMk082+WVtqqoZ2JCoqjAUAXCHLp0Vrfclr9y/q1ipPns3v/AMFv9f8Ag3vf
eopfLuP+fG+/8A5f/iaPLuP+fG+/8A5f/ia1MT02iiivlD6sKKKKACiiigAooooA
KKKKACiiigAooooA/9k=</hashTentativaEntrega>
            </detEvento>
        </infEvento>
        <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="#ID1101924124067630215700013355001000016587100016586001">
                    <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>KPDuRhjMwThsZtcYF4z7Y03LMSo=</DigestValue>
                </Reference>
            </SignedInfo>
            <SignatureValue>IyKw6X73ot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t0l/KZUBQcCte0G8smTq9wE1PMc6k7QsbAoHNbtN0+KoWXH8LiRj118UbwOz50Yvpnzr4Zbzf8vc=</X509Certificate>
                </X509Data>
            </KeyInfo>
        </Signature>
    </evento>
</envEvento>

 

 

xml que recebo de retorno da sefaz

 

<retEnvEvento versao="1.00" xmlns="http://www.portalfiscal.inf.br/nfe">
    <idLote>16586</idLote>
    <tpAmb>2</tpAmb>
    <verAplic>PR-v4_8_49</verAplic>
    <cOrgao>41</cOrgao>
    <cStat>999</cStat>
    <xMotivo>Erro nao catalogado</xMotivo>
</retEnvEvento>

 

Se alguem souber o que esta faltando ficaria muito feliz

  • Moderadores
Postado

também tu pode usar a lib para o mesmo e não ficar sofrendo pois se houver alteração ou mudanças tu vai precisar modificar novamente.

pegue o demo da dll e gere o xml pra ti. vai em sessão downloads. tem exemplo de como usar e a dll demo

Consultor SAC ACBr Juliomar Marchetti
 

Projeto ACBr

skype: juliomar
telegram: juliomar
e-mail: [email protected]
http://www.juliomarmarchetti.com.br
MVP_NewLogo_100x100_Transparent-02.png
 

 

  • Este tópico foi criado há 156 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.