NFC-E

MFLAVIO 17/01/2025 18:40:01
#503763
Nilsontres cara ja consegui enviar validar tudo certinho

tinha um erro no meu codigo de assinatura mesmo

cara agora outro B.O

quando vou cancelar um NFC-e
sempre me retorna Rejeição 618 Chave de Acesso inválida (modelo diferente de 55 )
a chave da nfc-e esta certinho ja conferi ja consultei a chave tudo OK

mas a rejeiçao fala do modelo diferete de 55 e realmente ne nfc-e e modelo 65
mas no XML de cancelamento por evento não tem tag MOD para informar o MODELO 65

cara fiquei perdido
estou tentando cancelar gerando o XML e enviando pelo Modulo da NFe

O XML fica assim
 evento versao="1.00" xmlns="http://www.portalfiscal.inf.br/nfe">
<infEvento Id="ID1101113525012804545700013165002000251447131279314501">
<cOrgao>35</cOrgao>
<tpAmb>2</tpAmb>
<CNPJ>28045457000131</CNPJ>
<chNFe>35250128045457000131650020002514471312793145</chNFe>
<dhEvento>2025-01-17T18:13:09-03:00</dhEvento>
<tpEvento>110111</tpEvento>
<nSeqEvento>1</nSeqEvento>
<verEvento>1.00</verEvento>
<detEvento versao="1.00">
<descEvento>Cancelamento</descEvento>
<nProt>135250000066649</nProt>
<xJust>Desacordo Erro Interno Desistencia</xJust>
</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="#ID1101113525012804545700013165002000251447131279314501">
<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>N+iBMPLWhDz6rt2CfmhPJJUHq58=</DigestValue>
</Reference>
</SignedInfo>
<SignatureValue>DnLT1cgrThlwoNyk0swknNZUoo2TfvNOoCptgChUNmZDGqvE+YgV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b3NpdG9yaW8vYWMtc3luZ3VsYXJpZC1tdWx0aXBsYS9sY3IvbGNyLWFjLXN5bmd1bGFyaWQtbXVsdGlwbGEuY3JsMGSgYqBghl5odHRwOi8vc3luZ3VsYXJpZC5jb20uYnIvcmVwb3NpdG9yaW8vYWMtc3luZ3VsYXJpZC1tdWx0aXBsYS9sY3IvbGNyLWFjLXN5bmd1bGFyaWQtbXVsdGlwbGEuY3JsMA0GCSqGSIb3DQEBCwUAA4ICAQBb/m+nkKjrdEruZ744h04ISmJngrrMvgZeCpqCYIyp1LZ6Xw0GPQ7q5N1e6BGqw8bauJpkP7l+F++eJ4NwaxYLROlKdwLVWemCzcwH8zprMypYYG2UL6bUtczHBUqlXEfT1L/uxTbDcBRQO3rHC4oFvrV+LAV9CwjZgZDnkM0kaGuplaX2iW3uk5nZINSq78RjhFn5iDki2DjQyw/ideYYgrM3ntc27zaDo7B2Gg5Ztp3VnBrc0pdYBDfxq2x2GU6EcQlzn2hKFJIQEyC9gDkIQf9pIHDCHcz96dZnm38VhfDKWKiH0eNBBmjhBmj0zDQF6R7vmOuodosPgAktDtExzeE+JNM9GUpmtHzw0QJBw5bF9pgThUVR6VsfLERjzY91CSUx9oNPluUPDitQZqRaOVj+0DrNgPL+tkFkwoN0sOI8adYDKZAk7dKs6ADB93R5r8Q6oOvIwaJW24+ISdVTN8gKZ4BHI4aqODQsXOzgMzI50TJJ1CdbudVWvh4W8H9XZgurcQfapbszjNtc5ho3UktjbvzlELKFS1gYOetDjn2bFQNG2V6ZcVmDOxAlyHc4gPK2RQZ7q87C2CbLc4pm6EOn2OV//q9l7szLZWDrMsJN9/8luzEmBaM1nTUbP7yHER/QNPw5tSpf9QFntn2xmpsyKLBEk3jR+e4lr03FAA==</X509Certificate>
</X509Data>
</KeyInfo>
</Signature>
</evento>


alguma dica?
NILSONTRES 17/01/2025 19:11:05
#503764
Alterado em 18/01/2025 11:28:03 Da uma olhada nas URL.
Public Class CancelamentoEvento_nfce
Dim _Url_Cancel_Evento As String = IIf(1, "https://nfce.fazenda.sp.gov.br/ws/NFeRecepcaoEvento4.asmx", "https://homologacao.nfce.fazenda.sp.gov.br/ws/NFeRecepcaoEvento4.asmx")

Vou atualizar o mini projeto com o Cancelamento.
Página 2 de 2 [12 registro(s)]
Faça seu login para responder