Desenvolvimento NFS-e
Desenvolvimento NFS-e
Desenvolvimento NFS-e
Gostaria de reagir a esta mensagem? Crie uma conta em poucos cliques ou inicie sessão para continuar.
Desenvolvimento NFS-e

Site destinado a desenvolvedores de softwares na integração com a NFS-e.
 
InícioInício  Últimas imagensÚltimas imagens  ProcurarProcurar  RegistarRegistar  Entrar  

 

 Envio de RPS para Itu

Ir para baixo 
2 participantes
AutorMensagem
Hagar_1972




Mensagens : 10
Data de inscrição : 01/10/2014

Envio de RPS para Itu Empty
MensagemAssunto: Envio de RPS para Itu   Envio de RPS para Itu EmptySeg Out 06, 2014 8:14 am

Senhores, bom dia.

Estou tentando via SOAP UI enviar um arquivo para a homologação de Itu. O arquivo é este que segue abaixo:
(Obs.: Somente desfigurei as informações reais do arquivo como CNPJ do tomador e dados do prestador p.ex.)

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns2:EnviarLoteRpsEnvio xmlns:tipos="http://www.ginfes.com.br/tipos_v03.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ns2="http://www.ginfes.com.br/servico_enviar_lote_rps_envio_v03.xsd">
<ns2:LoteRps Id="1">
<tipos:NumeroLote>1</tipos:NumeroLote>
<tipos:Cnpj>XXXXXXXXXXXXXX</tipos:Cnpj>
<tipos:InscricaoMunicipal>XXXXX</tipos:InscricaoMunicipal>
<tipos:QuantidadeRps>1</tipos:QuantidadeRps>
<tipos:ListaRps>
<tipos:Rps>
<tipos:InfRps Id="1">
<tipos:IdentificacaoRps>
<tipos:Numero>1</tipos:Numero>
<tipos:Serie>1</tipos:Serie>
<tipos:Tipo>1</tipos:Tipo>
</tipos:IdentificacaoRps>
<tipos:DataEmissao>2014-10-03T07:51:08</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>100.00</tipos:ValorServicos>
<tipos:IssRetido>2</tipos:IssRetido>
</tipos:Valores>
<tipos:ItemListaServico>1406</tipos:ItemListaServico>
<tipos:Discriminacao>TESTE DE ENVIO DE RPS</tipos:Discriminacao>
<tipos:CodigoMunicipio>3523909</tipos:CodigoMunicipio>
</tipos:Servico>
<tipos:Prestador>
<tipos:Cnpj>XXXXXXXXXXXXXX</tipos:Cnpj>
</tipos:Prestador>
<tipos:Tomador>
<tipos:RazaoSocial>Silmar Rodrigues</tipos:RazaoSocial>
<tipos:Endereco>
<tipos:Endereco>Rua XXX</tipos:Endereco>
<tipos:Numero>XXX</tipos:Numero>
<tipos:Complemento>XXX</tipos:Complemento>
<tipos:Bairro>Centro</tipos:Bairro>
<tipos:CodigoMunicipio>3550308</tipos:CodigoMunicipio>
<tipos:Uf>SP</tipos:Uf>
<tipos:Cep>99999999</tipos:Cep>
</tipos:Endereco>
</tipos:Tomador>
</tipos:InfRps>
</tipos:Rps>
</tipos:ListaRps>
</ns2:LoteRps>
</ns2:EnviarLoteRpsEnvio>

O arquivo passa pelo Schema tranquilamente.

Minhas dificuldades:
Se envio com o <?xml versão...> recebo a mensagem:
"org.xml.sax.SAXParseException: The processing instruction target matching "[xX][mM][lL]" is not allowed"

Se eu retiro esta TAG recebo a mensagem:
"<![CDATA[<?xml version="1.0" encoding="UTF-8" standalone="yes"?><ns3:EnviarLoteRpsResposta xmlns:ns2="http://www.ginfes.com.br/tipos_v03.xsd" xmlns:ns3="http://www.ginfes.com.br/servico_enviar_lote_rps_resposta_v03.xsd"><ListaMensagemRetorno><ns2:MensagemRetorno><ns2:Codigo>E185</ns2:Codigo><ns2:Mensagem>Arquivo de cabeçalho enviado fora da estrutura do arquivo XML de entrada.</ns2:Mensagem><ns2:Correcao>Envie um arquivo de cabeçalho dentro do schema do arquivo XML de entrada.</ns2:Correcao></ns2:MensagemRetorno></ListaMensagemRetorno></ns3:EnviarLoteRpsResposta>]]>"

Alguém já passou por este problema?
Tem alguma dica para acertar?

Desde já, agradeço pela ajuda...
Ir para o topo Ir para baixo
Vinicius Silveira ADM
Admin
Vinicius Silveira ADM


Mensagens : 441
Data de inscrição : 23/02/2012
Localização : São Paulo

Envio de RPS para Itu Empty
MensagemAssunto: Re: Envio de RPS para Itu   Envio de RPS para Itu EmptySeg Out 06, 2014 11:54 am

Hagar

Envie o SOAP desta forma:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:hom="http://homologacao.ginfes.com.br">
   <soapenv:Header/>
   <soapenv:Body>
      <hom:RecepcionarLoteRpsV3>
         <arg0><ns2:cabecalho versao="3" xmlns:ns2="http://www.ginfes.com.br/cabecalho_v03.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<versaoDados>3</versaoDados>
</ns2:cabecalho></arg0>
         <arg1><ns2:EnviarLoteRpsEnvio xmlns:tipos="http://www.ginfes.com.br/tipos_v03.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ns2="http://www.ginfes.com.br/servico_enviar_lote_rps_envio_v03.xsd">
<ns2:LoteRps Id="1">
<tipos:NumeroLote>1</tipos:NumeroLote>
<tipos:Cnpj>XXXXXXXXXXXXXX</tipos:Cnpj>
<tipos:InscricaoMunicipal>XXXXX</tipos:InscricaoMunicipal>
<tipos:QuantidadeRps>1</tipos:QuantidadeRps>
<tipos:ListaRps>
<tipos:Rps>
<tipos:InfRps Id="1">
<tipos:IdentificacaoRps>
<tipos:Numero>1</tipos:Numero>
<tipos:Serie>1</tipos:Serie>
<tipos:Tipo>1</tipos:Tipo>
</tipos:IdentificacaoRps>
<tipos:DataEmissao>2014-10-03T07:51:08</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>100.00</tipos:ValorServicos>
<tipos:IssRetido>2</tipos:IssRetido>
</tipos:Valores>
<tipos:ItemListaServico>1406</tipos:ItemListaServico>
<tipos:Discriminacao>TESTE DE ENVIO DE RPS</tipos:Discriminacao>
<tipos:CodigoMunicipio>3523909</tipos:CodigoMunicipio>
</tipos:Servico>
<tipos:Prestador>
<tipos:Cnpj>XXXXXXXXXXXXXX</tipos:Cnpj>
</tipos:Prestador>
<tipos:Tomador>
<tipos:RazaoSocial>Silmar Rodrigues</tipos:RazaoSocial>
<tipos:Endereco>
<tipos:Endereco>Rua XXX</tipos:Endereco>
<tipos:Numero>XXX</tipos:Numero>
<tipos:Complemento>XXX</tipos:Complemento>
<tipos:Bairro>Centro</tipos:Bairro>
<tipos:CodigoMunicipio>3550308</tipos:CodigoMunicipio>
<tipos:Uf>SP</tipos:Uf>
<tipos:Cep>99999999</tipos:Cep>
</tipos:Endereco>
</tipos:Tomador>
</tipos:InfRps>
</tipos:Rps>
</tipos:ListaRps>
</ns2:LoteRps>
</ns2:EnviarLoteRpsEnvio></arg1>
      </hom:RecepcionarLoteRpsV3>
   </soapenv:Body>
</soapenv:Envelope>
Ir para o topo Ir para baixo
http://SuporteNFS-e.forumeiros.com
Hagar_1972




Mensagens : 10
Data de inscrição : 01/10/2014

Envio de RPS para Itu Empty
MensagemAssunto: Re: Envio de RPS para Itu   Envio de RPS para Itu EmptySeg Out 06, 2014 12:36 pm

Vinicius, Muitíssimo obrigado!

Estou vendo alguns outros erros, mas é coisa de montar o XML corretamente.
Agora eu entendi para que ser o <arg0> e o <arg1>.

Valeu pela força!!
Ir para o topo Ir para baixo
Conteúdo patrocinado





Envio de RPS para Itu Empty
MensagemAssunto: Re: Envio de RPS para Itu   Envio de RPS para Itu Empty

Ir para o topo Ir para baixo
 
Envio de RPS para Itu
Ir para o topo 
Página 1 de 1
 Tópicos semelhantes
-
» Arquivo XML para envio de lote de RPS para prefeitura de PAULÍNIA
» XML - Envio para o site
» Versao XML para envio via Site
» envio de rps para prefeitura de fortaleza
» Exemplo Básico de Arquivo XML para RPS (envio pelo site)

Permissões neste sub-fórumNão podes responder a tópicos
Desenvolvimento NFS-e  :: Arquivo XML-
Ir para: