-2
I am sending this xml to the webservice of E-social but always displays the same message:
There’s a way you can help me by taking a look at the xml.
The submitted document is not a valid eSocial xml. There is no namespace tag http://www.esocial.gov.br/schema/lote/eventos/envio/v1_1_1 )
<?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlnssd="http://www.w3.org/2001/XMLSchema" xmlnssi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns6153="http://tempuri.org"><SOAP-ENV:Body>
<eSocial xmlns="http://www.esocial.gov.br/schema/lote/eventos/envio/v1_1_1">
<envioLoteEventos grupo="1">
<ideEmpregador>
<tpInsc>1</tpInsc> <ideTransmissor> </ ideEmpregador>
<nrInsc> 23111341 </ nrInsc>
<tpInsc> 1 </ tpInsc>
<nrInsc> 23111341000190 </ nrInsc>
</ ideTransmissor>
<eventos>
<evento Id = "ID1231113410001902018030510140000001">
<eSocial xmlns = "http://www.esocial.gov.br/schema/ Evt / evtInfoEmpregador / v02_02_02 ">
<evtInfoEmpregador Id =" ID1231113410001902018030510140000001 ">
<ideEvento>
<tpAmb> 2 </ tpAmb>
<procEmi> 1 </ procEmi>
<verProc> 1.0 </ verProc>
</ ideEvento>
<ideEmpregador>
< tpInsc> 1 </ tpInsc>
<nrInsc> 23111341000190 </ nrInsc>
</ ideEmpregador>
<infoEmpregador>
<inclusao>
<idePeriodo>
<iniValid> 2018-03 </ iniValid>
</ idePeriodo>
<infoCadastro>
<nmRazao> NOME EMPRESA ME </ nmRazao>
<classTrib> 01 </ classTrib>
<natJurid> 2240 </ natJurid>
<indCoop> 0 </ indCoop>
<indConstr> 0 </ indConstr>
<indDesFolha> 0 </ indDesFolha>
<indOptRegEletron> 1 </ indOptRegEletron>
<multTabRubricas> N </ multTabRubricas>
<indEntEd> N </ indEntEd>
<indEtt> N </ indEtt>
<contato>
<nmCtt> Nome do Contato </ nmCtt>
<cpfCtt> 12345678909 < / cpfCtt>
<foneFixo> 1123452345 </ foneFixo>
<email> [email protected] </ email>
</ contato>
<softwareHouse>
<cnpjSoftHouse> 12345678000195</cnpjSoftHouse>
<nmRazao>Nome da Software House</nmRazao>
<nmCont>Nome do Contato</nmCont>
<telefone> 1123452345 </ telefone>
<email> [email protected] </ email>
</ softwareHouse
>
<infoComplementares>
<situacaoPJ> <indSitPJ> 0 </ indSitPJ>
</ situacaoPJ>
</ infoComplementares>
</ infoCadastro>
</ inclusao>
</ infoEmpregador>
</ evtInfoEmpregador>
<Assinatura 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 = "#">
< Transforma>
<Transform Algorithm = "http://www.w3.org/2000/09/xmldsig#enveloped-signature" />
<Algoritmo de transformação = "http://www.w3.org/TR/2001/REC-xml-c14n-20010315" />
</ Transforms>
<DigestMethod Algorithm = "http://www.w3.org/2000/ 09 / xmldsig # sha1 "/>
<DigestValue> Haor6NuS2GAGAnwZaeTSjc4kgjo = </ DigestValue>
</ Reference>
</ SignedInfo> <SignatureValue> <SignatureValue> <KeyInfo> <X509Data> <X509Certificate> </ X509Certificate> </ X509Data> </ KeyInfo> </ Signature>
</ eSocial>
</ evento>
</ eventos>
</ envioLoteEventos>
</ eSocial> </ SOAP-ENV: Corpo> </ SOAP-ENV: Envelope>
And where is your xml?
– Leandro Angelo
I tried to copy and paste here but does not accept, says it is a span
– Ronald
<?xml version="1.0" encoding="UTF-8"? ><SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlnssd="http://www.w3.org/2001/XMLSchema" xmlnssi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns6153="http://uritemp.org"><SOAP-ENV:Body> <eSocial xmlns="http://www.esocial.gov.br/schema/lote/eventos/envio/v1_1_11">
– Ronald
do not post link, put xml as code in your question
– Leandro Angelo
Give me an email of your that I send the template
– Ronald
that’s not how it works around here, include xml in your question by hiding sensitive information.
– Leandro Angelo
But if I withdraw links, how will you check if the SOAP calls and digital certificate signatures are correct ?
– Ronald
Paste the xml into the question, select the text and use the Ctrl+k shortcut or click the icon
{ }
.– Leandro Angelo
an observation... if you have these ";" in your xml, this is already a mistake
– Leandro Angelo
ready I edited the question and put the xml
– Ronald