From 4943c730ecf9f6ef0cae198503e575772cfe270d Mon Sep 17 00:00:00 2001 From: Transis ERP Date: Thu, 23 Mar 2023 18:04:19 -0300 Subject: [PATCH] Update SimplISSv2ServiceClient.cs --- .../SimplISSv2/SimplISSv2ServiceClient.cs | 25 ++++++------------- 1 file changed, 8 insertions(+), 17 deletions(-) diff --git a/src/OpenAC.Net.NFSe/Providers/SimplISSv2/SimplISSv2ServiceClient.cs b/src/OpenAC.Net.NFSe/Providers/SimplISSv2/SimplISSv2ServiceClient.cs index 3280fd7c..5ee921cd 100644 --- a/src/OpenAC.Net.NFSe/Providers/SimplISSv2/SimplISSv2ServiceClient.cs +++ b/src/OpenAC.Net.NFSe/Providers/SimplISSv2/SimplISSv2ServiceClient.cs @@ -1,4 +1,4 @@ -// *********************************************************************** +// *********************************************************************** // Assembly : OpenAC.Net.NFSe // Author : Felipe Silveira/Transis // Created : 16-03-2023 @@ -31,6 +31,7 @@ using System; using System.Linq; +using System.ServiceModel.Channels; using System.Text; using System.Xml; using System.Xml.Linq; @@ -44,7 +45,7 @@ internal sealed class SimplISSv2ServiceClient : NFSeSoapServiceClient, IServiceC { #region Fields - private XNamespace tc = "http://www.abrasf.org.br/nfse.xsd"; + private XNamespace tc = "http://www.sistema.com.br/Nfse/arquivos/nfse_3.xsd"; #endregion Fields @@ -104,24 +105,15 @@ public string ConsultarNFSeRps(string cabec, string msg) public string ConsultarNFSe(string cabec, string msg) { var message = new StringBuilder(); - message.Append(""); - message.Append(AjustarMensagem(msg)); - message.Append(""); + message.Append(""); + message.Append(msg); + message.Append(""); return Execute("http://www.sistema.com.br/Sistema.Ws.Nfse/INfseService/ConsultarNfse", message.ToString(), "ConsultarNfseResult"); } - public string CancelarNFSe(string cabec, string msg) - { - var message = new StringBuilder(); - message.Append(""); - message.Append(AjustarMensagem(msg)); - message.Append(""); - - return Execute("http://www.sistema.com.br/Sistema.Ws.Nfse/INfseService/CancelarNfse", - message.ToString(), "CancelarNfseResult"); - } + public string CancelarNFSe(string cabec, string msg) => throw new NotImplementedException("Função não implementada/suportada neste Provedor !"); public string EnviarSincrono(string cabec, string msg) => throw new NotImplementedException("Função não implementada/suportada neste Provedor !"); @@ -134,8 +126,7 @@ public string CancelarNFSe(string cabec, string msg) private string Execute(string soapAction, string message, string responseTag) { return Execute(soapAction, message, "", responseTag, "xmlns:sis=\"http://www.sistema.com.br/Sistema.Ws.Nfse\"", - "xmlns:nfse=\"http://www.abrasf.org.br/nfse.xsd\"", - "xmlns:xd=\"http://www.w3.org/2000/09/xmldsig#\""); + "xmlns:sis1=\"http://www.sistema.com.br/Sistema.Ws.Nfse.Cn\""); } public string AjustarMensagem(string msg, params string[] tags)