public override string ConsultarNfsePorRps() { string retornar = string.Empty; string XMLRetorno = RequestWS(Envelopar(ArquivoXml, CabecMsg, "ConsultarNfsePorRps"), WSSoap.EnderecoWeb, this.NameSpaces + "ConsultarNfsePorRps"); MemoryStream stream = Generico.StringXmlToStream(XMLRetorno); XmlDocument doc = new XmlDocument(); doc.Load(stream); XmlNodeList xmlList = doc.GetElementsByTagName("outputXML"); retornar = Generico.TrataCaracteres(xmlList[0].OuterXml).Replace("<outputXML>", "").Replace("</outputXML>", ""); return(retornar); }
public override string RecepcionarLoteRps() { string retornar = string.Empty; string XMLRetorno = RequestWS(Envelopar(ArquivoXml, CabecMsg, "RecepcionarLoteRpsSincrono"), WSSoap.EnderecoWeb, WSSoap.ActionSoap.Replace("{metodo}", "ARECEPCIONARLOTERPSSINCRONO")); MemoryStream stream = Generico.StringXmlToStream(XMLRetorno); XmlDocument doc = new XmlDocument(); doc.Load(stream); XmlNodeList xmlList = doc.GetElementsByTagName("outputXML"); retornar = Generico.TrataCaracteres(xmlList[0].OuterXml).Replace("<outputXML>", "").Replace("</outputXML>", ""); return(retornar.ToString()); }