Ir para conteúdo
  • Cadastre-se

dev botao

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

Recommended Posts

Postado

Estou desenvolvendo uma api em node para se comunicar com o web service de rio de janeiro. Tentei enviar rps para o web service de homologação mas o status code do retorno é 400 e o body da resposta é vazia. Gostaria se vcs poderiam me ajudar nesse quesito.

 

Xml de envio;

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:not="http://notacarioca.rio.gov.br/">
    <soapenv:Header />
    <soapenv:Body>
        <not:RecepcionarLoteRpsRequest>
            <not:inputXML>
                <EnviarLoteRpsEnvio xmlns="http://www.abrasf.org.br/ABRASF/arquivos/nfse.xsd">
                    <LoteRps Id="107718240001191552045784083">
                        <NumeroLote>1324923146</NumeroLote>
                        <Cnpj>10771824000119</Cnpj>
                        <InscricaoMunicipal>04386965</InscricaoMunicipal>
                        <QuantidadeRps>1</QuantidadeRps>
                        <ListaRps>
                            <Rps>
                                <InfRps Id="107718240001191552045784083RPS0">
                                    <IdentificacaoRps>
                                        <Numero>15520457840830</Numero>
                                        <Serie>RPS</Serie>
                                        <Tipo>1</Tipo>
                                    </IdentificacaoRps>
                                    <DataEmissao>2019-03-25T00:00:00</DataEmissao>
                                    <NaturezaOperacao>1</NaturezaOperacao>
                                    <OptanteSimplesNacional>2</OptanteSimplesNacional>
                                    <IncentivadorCultural>2</IncentivadorCultural>
                                    <Status>1</Status>
                                    <Servico>
                                        <Valores>
                                            <ValorServicos>105</ValorServicos>
                                            <ValorDeducoes>0</ValorDeducoes>
                                            <ValorPis>0</ValorPis>
                                            <ValorCofins>0</ValorCofins>
                                            <ValorInss>0</ValorInss>
                                            <ValorIr>0</ValorIr>
                                            <ValorCsll>0</ValorCsll>
                                            <IssRetido>2</IssRetido>
                                            <ValorIss>2.1</ValorIss>
                                            <BaseCalculo>105</BaseCalculo>
                                            <Aliquota>0.02</Aliquota>
                                            <ValorLiquidoNfse>105</ValorLiquidoNfse>
                                        </Valores>
                                        <ItemListaServico>107</ItemListaServico>
                                        <CodigoTributacaoMunicipio>6209100</CodigoTributacaoMunicipio>
                                        <Discriminacao>Ref. Servico Conforme O.S. Foi feito ajustes nas configuracoes
                                            do SITEF.;Foi feito a instalacao do PINPAD.;Foi feito testes de venda com
                                            cartao.</Discriminacao>
                                        <CodigoMunicipio>2704302</CodigoMunicipio>
                                    </Servico>
                                    <Prestador>
                                        <Cnpj>10393366000121</Cnpj>
                                        <InscricaoMunicipal>04386965</InscricaoMunicipal>
                                    </Prestador>
                                    <Tomador>
                                        <IdentificacaoTomador>
                                            <CpfCnpj>
                                                <Cnpj>08485955000198</Cnpj>
                                            </CpfCnpj>
                                            <InscricaoMunicipal>900081220</InscricaoMunicipal>
                                        </IdentificacaoTomador>
                                        <RazaoSocial>JOALHERIA DIVINO ESPIRITO SANTO LTDA ME</RazaoSocial>
                                        <Endereco>
                                            <Endereco>R AGERSON DANTAS</Endereco>
                                            <Numero>66</Numero>
                                            <Bairro>Centro</Bairro>
                                            <CodigoMunicipio>2704302</CodigoMunicipio>
                                            <Uf>AL</Uf>
                                            <Cep>57020310</Cep>
                                        </Endereco>
                                        <Contato>
                                            <Telefone>8232211212</Telefone>
                                            <Email>[email protected]</Email>
                                        </Contato>
                                    </Tomador>
                                </InfRps>
                                <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="#107718240001191552045784083RPS0">
                                            <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>TZR9IZ9mdnLWf92ZaQRsbGWOFNA=</DigestValue>
                                        </Reference>
                                    </SignedInfo>
                                    <SignatureValue>VmV++s+vsmRivoZS35aLSdpa8usqv/1Fxd/nRH/gSyzxrixSSQ4M2qzUtbMHAk+qWT3dhK8cL3R/vCZ4a39RwshrUZ2nlOY6sNWmFVFL1CS5ka9YW3c0t1r4udD7AuzzXlFx1/ITwPFjooIjXAdceWVUbuMjzOY+zDm+zJi08X1NDwJNRHhi/OLXntql2zDGE7gar5oCQmex5vAXowgmU+MeCsAHyerSVffB+HMflnZXesl13am16Xytd/GcMLCyx9vvMwf13le6wZ4xBfYOtgGn1eXs19zPpNykQEyVxjQWehbr6ApVHTs0o2UMJbf/l6kOVShNzVSa6bP2/FhARg==</SignatureValue>
                                    <KeyInfo>
                                        <X509Data>
                                            <X509Certificate>MIIIIjCCBgqgAwIBAgIIYk1ac5VjLHQwDQYJKoZIhvcNAQELBQAwcTELMAkGA1UEBhMCQlIxEzARBgNVBAoTCklDUC1CcmFzaWwxNjA0BgNVBAsTLVNlY3JldGFyaWEgZGEgUmVjZWl0YSBGZWRlcmFsIGRvIEJyYXNpbCAtIFJGQjEVMBMGA1UEAxMMQUMgVkFMSUQgUkZCMB4XDTE4MTAyOTE3MzExM1oXDTE5MTAyOTE3MzExM1owgfMxCzAJBgNVBAYTAkJSMQswCQYDVQQIEwJSSjEXMBUGA1UEBxMOUklPIERFIEpBTkVJUk8xEzARBgNVBAoTCklDUC1CcmFzaWwxNjA0BgNVBAsTLVNlY3JldGFyaWEgZGEgUmVjZWl0YSBGZWRlcmFsIGRvIEJyYXNpbCAtIFJGQjEWMBQGA1UECxMNUkZCIGUtQ05QSiBBMTEaMBgGA1UECxMRQVIgQUNFUlRPIERJR0lUQUwxPTA7BgNVBAMTNERFU0NPTVBMSUNBIENVUlNPUyBMSVZSRVMgVklBIFdFQiBTIEE6MTAzOTMzNjYwMDAxMjEwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDDiUNN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cmVtIF4r313C/o9eVQEjpvn+nijMK4ATyi2Wg==</X509Certificate>
                                        </X509Data>
                                    </KeyInfo>
                                </Signature>
                            </Rps>
                        </ListaRps>
                    </LoteRps>
                    <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="#107718240001191552045784083">
                                <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>40nfUPakY244lAk7wMalWDjiZFw=</DigestValue>
                            </Reference>
                        </SignedInfo>
                        <SignatureValue>Z9Cw/V9zNp/tX5eRQG1dr7+ZFHivjuhDuM58PSn2BqkSjVdNbm3aARcOZbUBm6yF0do+H29Szo0ONRTc3SIEjRnx3VEA6maKailomqxLh80XSeAxb0m5Gpy3F2nAIfGh5/vYN+wkIEG7c//2Yi67M0ODrUvLZ+kc78W16b0K6atHvpr7aTqLXP4KUx9Ww//ZmaNVtIoPvBh/tfuSNEn2AuxJCfb7jokiIoN06QPFvJr6BI+eQ0oEGOEsebMBN7m6NpfTBR6r7xRjFEIp7ZiiibtllZl33pd9JzMfR4yM03ujpesoA2HOU3zqa5se1gZ7Gvm91inI+DcvxDRcKS4yQ==</SignatureValue>
                        <KeyInfo>
                            <X509Data>
                                <X509Certificate>MIIIIjCCBgqgAwIBAgIIYk1ac5VjLHQwDQYJKoZIhvcNAQELBQAwcTELMAkGA1UEBhMCQlIxEzARBgNVBAoTCklDUC1CcmFzaWwxNjA0BgNVBAsTLVNlY3JldGFyaWEgZGEgUmVjZWl0YSBGZWRlcmFsIGRvIEJyYXNpbCAtIFJGQjEVMBMGA1U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hkmXQPk/KlrBVRHm9W5sEpsQMxkJO0yuxYyLPhcSfBDRdR7nif1tHyQeoWmZ40r+ttNIon+TCNyRa7dQygiivGvoPAekqFbhzlRev6UR++f5d3b3xV/T79bDJLa5hBMLulC4x6f/xJ7PuvvcpOhMmjq1HXzA3lNp700haJKAmWcGZhxyUJcsabRzUbnc9+/CGmT/ac4qqgdTGgejeDHLFUvK+kltWaIX0De8QqJ7u2aQv1cGZ2Sj9n3uGmwO4hDex7NkXR99XhwG7SGNHFug06QF+EgEtjhZAFiVmW4j+uc2FSAxueK22cAPvquBgK62JMa4MDlD+9/5pN5KpEOrhRGfVtLXsrJ9twmzvWubqPIa9u18xXVszqjTtkUTf1jQ7ghp1yRprvwb3N1IJCe5/nLAMFgEmaS+C7xKLUEhb4WNyDzvNR6hHxvblsshOq8UcmVtIF4r313C/o9eVQEjpvn+nijMK4ATyi2Wg==</X509Certificate>
                            </X509Data>
                        </KeyInfo>
                    </Signature>
                </EnviarLoteRpsEnvio>
            </not:inputXML>
        </not:RecepcionarLoteRpsRequest>
    </soapenv:Body>
</soapenv:Envelope>

 

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