コード例 #1
0
ファイル: FISSLEXH.cs プロジェクト: matBatista/uninfe
        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);
        }
コード例 #2
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);
        }