Exemplo n.º 1
0
        public override void ConsultarSituacaoLoteRps(string file)
        {
            ConsultarSituacaoLoteRpsEnvio    consultarsituacaoloterps = ReadXML <ConsultarSituacaoLoteRpsEnvio>(file);
            ConsultarSituacaoLoteRpsResposta result = service.ConsultarSituacaoLoteRps(consultarsituacaoloterps);

            GerarRetorno(file, base.CreateXML(result), Propriedade.ExtEnvio.PedLoteRps, Propriedade.ExtRetorno.RetLoteRps);
        }
Exemplo n.º 2
0
        public override void ConsultarSituacaoLoteRps(string file)
        {
            ConsultarSituacaoLoteRpsEnvio envio = DeserializarObjeto <ConsultarSituacaoLoteRpsEnvio>(file);
            string strResult = SerializarObjeto(Service.ConsultarSituacaoLoteRps(envio, DadosConexao));

            GerarRetorno(file, strResult, Propriedade.Extensao(Propriedade.TipoEnvio.PedSitLoteRps).EnvioXML,
                         Propriedade.Extensao(Propriedade.TipoEnvio.PedSitLoteRps).RetornoXML);
        }
Exemplo n.º 3
0
        public override void ConsultarSituacaoLoteRps(string file)
        {
            object erros = new object[1];

            ConsultarSituacaoLoteRpsEnvio    oTcDadosConsultaNota = ReadXML <ConsultarSituacaoLoteRpsEnvio>(file);
            ConsultarSituacaoLoteRpsResposta result = service.ConsultarSituacaoLoteRps(oTcDadosConsultaNota, dadosConexao);
            string strResult = base.CreateXML(result, erros);

            GerarRetorno(file, strResult, Propriedade.ExtEnvio.PedLoteRps, Propriedade.ExtRetorno.RetLoteRps);
        }
Exemplo n.º 4
0
        public override void ConsultarSituacaoLoteRps(string file)
        {
            ConsultarSituacaoLoteRps Service = new ConsultarSituacaoLoteRps();

            Service.ClientCertificates.Add(Certificado);
            DefinirProxy <ConsultarSituacaoLoteRps>(Service);

            ConsultarSituacaoLoteRpsEnvio envio = DeserializarObjeto <ConsultarSituacaoLoteRpsEnvio>(file);
            string strResult = SerializarObjeto(Service.CallConsultarSituacaoLoteRps(envio));

            GerarRetorno(file,
                         strResult,
                         Propriedade.Extensao(Propriedade.TipoEnvio.PedSitLoteRps).EnvioXML,
                         Propriedade.Extensao(Propriedade.TipoEnvio.PedSitLoteRps).RetornoXML);
        }
Exemplo n.º 5
0
        public override void ConsultarSituacaoLoteRps(string file)
        {
            ServiceConsultarSituacaoLoteRps.Proxy             = WebRequest.DefaultWebProxy;
            ServiceConsultarSituacaoLoteRps.Proxy.Credentials = new NetworkCredential(ProxyUser, ProxyPass);
            ServiceConsultarSituacaoLoteRps.Credentials       = new NetworkCredential(ProxyUser, ProxyPass);

            ConsultarSituacaoLoteRpsEnvio oTcDadosConsultaLote = ReadXML <ConsultarSituacaoLoteRpsEnvio>(file);

            NFe.Components.br.com.fisslex.demo.aws_consultarsituacaoloterps.h.ConsultarSituacaoLoteRpsResposta result = null;

            result = ServiceConsultarSituacaoLoteRps.Execute(oTcDadosConsultaLote);

            string strResult = base.CreateXML(result);

            GerarRetorno(file, strResult, Propriedade.ExtEnvio.PedSitLoteRps, Propriedade.ExtRetorno.SitLoteRps);
        }
Exemplo n.º 6
0
        public override void ConsultarSituacaoLoteRps(string file)
        {
            #region Definições de proxy

            if (!String.IsNullOrEmpty(ProxyUser))
            {
                ServiceConsultarSituacaoLoteRps.Proxy             = WebRequest.DefaultWebProxy;
                ServiceConsultarSituacaoLoteRps.Proxy.Credentials = new NetworkCredential(ProxyUser, ProxyPass);
                ServiceConsultarSituacaoLoteRps.Credentials       = new NetworkCredential(ProxyUser, ProxyPass);
            }

            #endregion Definições de proxy

            ConsultarSituacaoLoteRpsEnvio envio = DeserializarObjeto <ConsultarSituacaoLoteRpsEnvio>(file);
            string strResult = SerializarObjeto(ServiceConsultarSituacaoLoteRps.Execute(envio));

            GerarRetorno(file, strResult, Propriedade.Extensao(Propriedade.TipoEnvio.PedSitLoteRps).EnvioXML,
                         Propriedade.Extensao(Propriedade.TipoEnvio.PedSitLoteRps).RetornoXML);
        }
Exemplo n.º 7
0
        public override void ConsultarSituacaoLoteRps(string file)
        {
            #region Definições de proxy
            if (!String.IsNullOrEmpty(ProxyUser))
            {
                ServiceConsultarSituacaoLoteRps.Proxy             = WebRequest.DefaultWebProxy;
                ServiceConsultarSituacaoLoteRps.Proxy.Credentials = new NetworkCredential(ProxyUser, ProxyPass);
                ServiceConsultarSituacaoLoteRps.Credentials       = new NetworkCredential(ProxyUser, ProxyPass);
            }
            #endregion

            ConsultarSituacaoLoteRpsEnvio oTcDadosConsultaLote = ReadXML <ConsultarSituacaoLoteRpsEnvio>(file);
            NFe.Components.br.com.fisslex.demo.aws_consultarsituacaoloterps.h.ConsultarSituacaoLoteRpsResposta result = null;

            result = ServiceConsultarSituacaoLoteRps.Execute(oTcDadosConsultaLote);

            string strResult = base.CreateXML(result);
            GerarRetorno(file, strResult, Propriedade.Extensao(Propriedade.TipoEnvio.PedSitLoteRps).EnvioXML,
                         Propriedade.Extensao(Propriedade.TipoEnvio.PedSitLoteRps).RetornoXML);
        }