2
I’m trying to submit a test of Reinf’s R-1000 event and get back to me:
Remote server returned an error: (500) Internal Server Error.
Processing failure. Please try again. Handle: 3033699826
Could someone help me??
Follows the code:
string xmlRequisicaoSOAP = MontarXmlRequisicao();
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(this.URL);
//request.Headers.Add("SOAPAction", string.Format("\"{0}{1}\"", XMLNS, METODO));
request.Headers.Add("SOAPAction", @"https://preprodefdreinf.receita.fazenda.gov.br/RecepcaoLoteReinf.svc");
request.ContentType = "text/xml;charset=\"utf-8\"";
request.Accept = "text/xml";
request.Method = "POST";
// request.Proxy = proxy;
if (this.Certificado != null)
request.ClientCertificates.Add(this.Certificado);
if (this.TimeOutEmSegundos > 0)
request.Timeout = this.TimeOutEmSegundos * 1000;
this.UltimaRequisicao = xmlRequisicaoSOAP;
try
{
using (Stream stream = request.GetRequestStream())
{
using (StreamWriter stmw = new StreamWriter(stream))
{
stmw.Write(xmlRequisicaoSOAP);
}
}
}
catch (Exception wex)
{
throw new Exception(wex.Message);
}
try
{
WebResponse webresponse = request.GetResponse();
HttpWebResponse response = (HttpWebResponse)webresponse;
//if(response.StatusCode == HttpStatusCode.OK)
using (StreamReader responseReader = new StreamReader(response.GetResponseStream()))
{
string result = responseReader.ReadToEnd();
return result;
}
}
catch (WebException wex)
{
string mensagemSubjacente = ObterMensagemSubjacente(wex);
string msg = string.Format("{1}\r\n{0}\r\n Detalhes subjacentes: \r\n{2}",
System.Environment.NewLine, wex.Message, mensagemSubjacente);
throw new ExcecaoComunicacaoREINF(msg, wex, xmlRequisicaoSOAP);
// throw new Exception(wex.Message);
}
catch (Exception ex)
{
throw new ExcecaoComunicacaoREINF(ex.Message, ex, xmlRequisicaoSOAP);
}
}
Who is
reinf
?– Jéf Bueno
Sorry. I’m trying to send the EFD-Reinf file to the IRS.
– Rogerio Alcantara
Include the code you developed for sending.
– Leandro Angelo
Someone could help me???
– Rogerio Alcantara
What is the error description of code 3033699826 in the documentation of the service you are interacting with?
– Leandro Angelo
In SEFAZ I found nothing.
– Rogerio Alcantara
Rogerio, I answered your other question, which is more detailed: https://answall.com/q/269338/86952
– Pedro Gaspar
In my opinion, all these government systems need to have better developer support, more stability and better and more simplified documentation and ways of accessing via Web API.
– Tony
Possible duplicate of Problem for sending SPED-REINF c#
– Pedro Gaspar