Pessoal,
Finalmente conseguimos gerar a nota fiscal para Santos pelo WB.
Agora estamos com dificuldade em identificar qual o problema com o cancelamento, que está retornando o mesmo erro E160.
Ao submetermos esse XML ao XSD retorna a mensagem:
The element 'CancelarNfseEnvio' in namespace 'http://www.ginfes.com.br/servico_cancelar_nfse_envio_v03.xsd' has invalid child element 'Pedido' in namespace 'http://www.ginfes.com.br/servico_cancelar_nfse_envio_v03.xsd'. List of possible elements expected: 'Pedido'.
Já testamos de diversas formas para tentar identificar qual o problema o elemento <Pedido> no XML sem sucesso.
Poderia nos indicar qual o problema desse XML ou nos encaminhar um modelo de cancelamento por favor ?
Segue em anexo um exemplo do XML de cancelamento.
- Código:
-
<?xml version="1.0" encoding="UTF-8"?>
<CancelarNfseEnvio xmlns="http://www.ginfes.com.br/servico_cancelar_nfse_envio_v03.xsd" xmlns:tipos="http://www.ginfes.com.br/tipos_v03.xsd">
<Pedido>
<InfPedidoCancelamento Id="000002">
<IdentificacaoNfse>
<tipos:Numero>2</tipos:Numero>
<tipos:Cnpj>92771575000550</tipos:Cnpj>
<tipos:InscricaoMunicipal>1617609</tipos:InscricaoMunicipal>
<tipos:CodigoMunicipio>3548500</tipos:CodigoMunicipio>
</IdentificacaoNfse>
<CodigoCancelamento>2</CodigoCancelamento>
</InfPedidoCancelamento>
<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="#000002">
<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>utct7rVPxjAjipUpiExUqF1LB34=</DigestValue>
</Reference>
</SignedInfo>
<SignatureValue>qoRJueDV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