Beispiel #1
0
        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);
        }
Beispiel #2
0
        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());
        }