Bom dia pessoal,
Estou tentando fazer o arquivo xml para envio de lote de RPS para a prefeitura de Santo André. Estou fazendo apenas o arquivo para envio, porém mesmo validando o XML com os schemas da prefeitura onde o resultado é "valid", quando envio no site recebo sempre a mesma mensagem.
Em alguns outros tópicos que li, diziam que podia ser a falta Inscrição Municipal ou então os cabeçalhos. Pelos exemplos que vi, o meu parece estar com as tags que precisam.
Tem como vocês me ajudarem? Não estou encontrando solução alguma.
Segue o meu exemplo de XML:
OBS: Os valores de CNPJ e InscricaoMunicial estão fakes apenas para exibir à vocês.
<?xml version="1.0" encoding="UTF-8"?>
<EnviarLoteRpsEnvio xmlns="http://www.ginfes.com.br/servico_enviar_lote_rps_envio_v03.xsd">
<LoteRps xmlns:tipos="http://www.ginfes.com.br/tipos_v03.xsd" Id="A5C">
<tipos:NumeroLote>5</tipos:NumeroLote>
<tipos:Cnpj>9999999999999</tipos:Cnpj>
<tipos:InscricaoMunicipal>999999</tipos:InscricaoMunicipal>
<tipos:QuantidadeRps>1</tipos:QuantidadeRps>
<tipos:ListaRps>
<tipos:Rps>
<tipos:InfRps Id="A6367B">
<tipos:IdentificacaoRps>
<tipos:Numero>6367</tipos:Numero>
<tipos:Serie>LOG01</tipos:Serie>
<tipos:Tipo>1</tipos:Tipo>
</tipos:IdentificacaoRps>
<tipos:DataEmissao>2019-12-09T08:11:23</tipos:DataEmissao>
<tipos:NaturezaOperacao>1</tipos:NaturezaOperacao>
<tipos:OptanteSimplesNacional>2</tipos:OptanteSimplesNacional>
<tipos:IncentivadorCultural>2</tipos:IncentivadorCultural>
<tipos:Status>1</tipos:Status>
<tipos:Servico>
<tipos:Valores>
<tipos:ValorServicos>2.0</tipos:ValorServicos>
<tipos:ValorDeducoes>0</tipos:ValorDeducoes>
<tipos:ValorPis>0</tipos:ValorPis>
<tipos:ValorCofins>0</tipos:ValorCofins>
<tipos:ValorInss>0</tipos:ValorInss>
<tipos:ValorIr>0</tipos:ValorIr>
<tipos:ValorCsll>0</tipos:ValorCsll>
<tipos:IssRetido>2</tipos:IssRetido>
<tipos:ValorIss>0</tipos:ValorIss>
<tipos:ValorIssRetido>0</tipos:ValorIssRetido>
<tipos:OutrasRetencoes>0</tipos:OutrasRetencoes>
<tipos:BaseCalculo>800</tipos:BaseCalculo>
<tipos:Aliquota>4.50</tipos:Aliquota>
<tipos:ValorLiquidoNfse>0</tipos:ValorLiquidoNfse>
<tipos:DescontoIncondicionado>0</tipos:DescontoIncondicionado>
<tipos:DescontoCondicionado>0</tipos:DescontoCondicionado>
</tipos:Valores>
<tipos:ItemListaServico>1101</tipos:ItemListaServico>
<tipos:CodigoCnae>5223100</tipos:CodigoCnae>
<tipos:Discriminacao>Estacionamento</tipos:Discriminacao>
<tipos:CodigoMunicipio>3547809</tipos:CodigoMunicipio>
</tipos:Servico>
<tipos:Prestador>
<tipos:Cnpj>9999999999999</tipos:Cnpj>
<tipos:InscricaoMunicipal>999999</tipos:InscricaoMunicipal>
</tipos:Prestador>
<tipos:Tomador>
<tipos:RazaoSocial>TOMADOR NAO IDENTIFICADO</tipos:RazaoSocial>
</tipos:Tomador>
</tipos:InfRps>
</tipos:Rps>
</tipos:ListaRps>
</LoteRps>
</EnviarLoteRpsEnvio>