Beispiel #1
0
        public WSBoleto(Ambientes Ambiente)
        {
            this._Ambiente = Ambiente;

            try
            {
                ws         = new _WSBoleto.WsBoleto();
                ws.Timeout = 120000; //2 MIN

                _Par = Setup.WebServices.WsBoleto(Ambiente);

                ws.Url = _Par.Url;
            }
            catch
            {
                throw new Exception("ERRO AO INICIALIZAR O WEBSERVICE WSBOLETOS");
            }
        }
Beispiel #2
0
        public WSVipBoleto(Ambientes Ambiente)
        {
            try
            {
                ws = new _VipBoletoWS.RodandoLegal();
                //ws.Timeout = 120000; //2 MIN

                par = Setup.WebServices.WsVipBoleto(Ambiente); // Parametros.URL.Webservices.WSVipBoleto(Ambiente);

                ws.Url = par.Url;

                ws.Credentials = new System.Net.NetworkCredential(par.Usuario, par.Senha);
            }
            catch
            {
                throw new Exception("Erro ao inicializar o webservice VipBoletoWS");
            }
        }