Reception Event 4.0 - Nfe Manifestation

Asked

Viewed 1,281 times

0

Good morning, everyone,

I’m trying to send a XML to the SEFAZ server on WebService RecepcaoEvento 4.0

link WebService: https://www.nfe.fazenda.gov.br/NFeRecepcaoEvento4/NFeRecepcaoEvento4.asmx?wsdl

Manual Link: http://www.nfe.fazenda.gov.br/portal/exibirArquivo.aspx?conteudo=URCYvjVMIzI=

Follows XML sending:

<envEvento xmlns="http://www.portalfiscal.inf.br/nfe" versao="4.00">
<idLote>1</idLote>
<evento versao="4.00">
<infEvento Id="ID210200[chavenfe]1">
<cOrgao>35</cOrgao>
<tpAmb>1</tpAmb>
<CNPJ>[cnpj]</CNPJ>
<chNFe>[chavenfe]</chNFe>
<dhEvento>2018-23-08T18:00:00-00:00</dhEvento>
<tpEvento>210200</tpEvento>
<nSeqEvento>1</nSeqEvento>
<verEvento>1.00</verEvento>
<detEvento versao="1.00">
<descEvento>Confirmacao da Operacao</descEvento>
</detEvento>
<Signature xmlns="http://www.w3.org/2000/09/xmldsig#">
<SignedInfo>
<CanonicalizationMethod Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315"></CanonicalizationMethod>
<SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"></SignatureMethod>
<Reference URI="#ID210200351805441458450002215500100131937313123542851">
<Transforms>
<Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature"></Transform>
<Transform Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315"></Transform>
</Transforms>
<DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"></DigestMethod>
<DigestValue>[CHAVE]</DigestValue>
</Reference>
</SignedInfo>
<SignatureValue>[CHAVE]</SignatureValue>
<KeyInfo>
<X509Data>
<X509Certificate>[CHAVE]</X509Certificate>
</X509Data>
</KeyInfo>
</Signature>
</infEvento>
</evento>
</envEvento>

Follows XML return from SEFAZ:

<retEnvEvento versao="1.00" xmlns="http://www.portalfiscal.inf.br/nfe">
<idLote>000000000000000</idLote>
<tpAmb>1</tpAmb>
<verAplic>AN_1.0.0</verAplic>
<cOrgao>91</cOrgao>
<cStat>999</cStat>
<xMotivo>2254 - Falha na validação de esquema Xml</xMotivo>
</retEnvEvento>

Can anyone tell me what I’m sending wrong?

1 answer

0

The version of envEvento and the event are still 1.00. Despite having this new URL, a new event Schema with the updated version was not available. This is why you are experiencing schema validation error. This version 1.00 is in schema as the only fill option in the version tag. I suggest including a schema validator before sending your XML to the recipe, so you can check consistency errors before you even hit the recipe.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.