public override void EmiteNF(string file) { RecepcionarLoteRps Service = new RecepcionarLoteRps(); Service.ClientCertificates.Add(Certificado); DefinirProxy <RecepcionarLoteRps>(Service); EnviarLoteRpsEnvio envio = DeserializarObjeto <EnviarLoteRpsEnvio>(file); string strResult = SerializarObjeto(Service.CallRecepcionarLoteRps(envio)); GerarRetorno(file, strResult, Propriedade.Extensao(Propriedade.TipoEnvio.EnvLoteRps).EnvioXML, Propriedade.Extensao(Propriedade.TipoEnvio.EnvLoteRps).RetornoXML); }
public override void EmiteNF(string file) { XmlDocument xml = new XmlDocument(); xml.Load(file); RecepcionarLoteRps envio = new RecepcionarLoteRps { nfseCabecMsg = CabecMsg, nfseDadosMsg = xml.InnerXml }; string result = Service.RecepcionarLoteRps(envio).@return; GerarRetorno(file, result, Propriedade.Extensao(Propriedade.TipoEnvio.EnvLoteRps).EnvioXML, Propriedade.Extensao(Propriedade.TipoEnvio.EnvLoteRps).RetornoXML); }