Olá a todos !
Estou desenvolvendo uma ferramenta de geração de NFS-e para São Bernardo do Campo e gostaria de tirar algumas dúvidas!
Estou trabalhando na base de teste da GINFES (https://homologacao.ginfes.com.br/ServiceGinfesImpl?wsdl)
Efetuei o envio de um lote de RPS através do método RecepcionarLoteRpsV3 e obtive como resposta o protocolo. Até aqui tudo certo.
Porém ao consultar a Situação do lote RPS através do método ConsultarSituacaoLoteRpsV3 obtive como resposta o erro E4 - Esse RPS não foi enviado para a nossa base de dados.
Tentei consultar através do método ConsultarLoteRpsV3 e obtive o mesmo erro.
Alguém tem alguma ideia do que estou fazendo errado ?
Segue xml's utilizados.
XML usado no método "ConsultarSituacaoLoteRpsV3"
- Código:
-
<?xml version="1.0" encoding="utf-8"?>
<ConsultarSituacaoLoteRpsEnvio xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.ginfes.com.br/servico_consultar_situacao_lote_rps_envio_v03.xsd">
<Prestador>
<Cnpj xmlns="http://www.ginfes.com.br/tipos_v03.xsd">REMOVIDO POR PRIVACIDADE</Cnpj>
<InscricaoMunicipal xmlns="http://www.ginfes.com.br/tipos_v03.xsd">REMOVIDO POR PRIVACIDADE</InscricaoMunicipal>
</Prestador>
<Protocolo>1</Protocolo>
<Signature Id="Ass_1" xmlns="http://www.w3.org/2000/09/xmldsig#">
<SignedInfo>
<CanonicalizationMethod Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315#WithComments" />
<SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1" />
<Reference URI="">
<Transforms>
<Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature" />
</Transforms>
<DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
<DigestValue>0uEf5CtL8AG6kklkKyw3muNjTlA=</DigestValue>
</Reference>
</SignedInfo>
<SignatureValue>c/8KBmbWPWL8gAcW/JYRu4eXwTxyUYDULP87wa6BSB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cD8WIqNmqYwqJdmJS3PdcBqSFQAACkLIKTgrAxcwU/HjVGcjy8TeKkglTocKw7uPr7DLfjK2sDcX9ezaiQPY/98CX6nrZvCUjQapjoU/NC+8EhE78x3d6zjYXUZ++U8srIZO5dRKgDx32PshE5mmWuNzwD81FwsPnsdw6T9nsYFMg16EDIDTNMYJrk158Ee5HP8G001aus5FwZtGKAO146oHQr0D6ee92DvzT2/NEIwRow5/Y2QRpBfOB6m/O7uxoiuU80j6H026Lsj7swT9l6C/doDuLN3uDcjNP3o8p8c4TqemDQtHe+lSyH9xdwxTcF+V</X509Certificate>
</X509Data>
</KeyInfo>
</Signature>
</ConsultarSituacaoLoteRpsEnvio>
XML utilizado no método "ConsultarLoteRpsV3"
- Código:
-
<?xml version="1.0" encoding="utf-8"?>
<ConsultarLoteRpsEnvio xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.ginfes.com.br/servico_consultar_lote_rps_envio_v03.xsd">
<Prestador>
<Cnpj xmlns="http://www.ginfes.com.br/tipos_v03.xsd"> REMOVIDO POR PRIVACIDADE </Cnpj>
<InscricaoMunicipal xmlns="http://www.ginfes.com.br/tipos_v03.xsd">REMOVIDO POR PRIVACIDADE</InscricaoMunicipal>
</Prestador>
<Protocolo>1</Protocolo>
<Signature Id="Ass_1" xmlns="http://www.w3.org/2000/09/xmldsig#">
<SignedInfo>
<CanonicalizationMethod Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315#WithComments" />
<SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1" />
<Reference URI="">
<Transforms>
<Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature" />
</Transforms>
<DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
<DigestValue>OU9DsFY0uKyyDysy0+SACC8wMgg=</DigestValue>
</Reference>
</SignedInfo>
<SignatureValue>IiSZiHJv5pwBc5jh40jRm0owV1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