示例#1
0
        public static List <WSSucursales.Regional> RegionalUdaiExternoTraer()
        {
            WSSucursales.SucursalesWS oServicio = new WSSucursales.SucursalesWS();
            oServicio.Url         = ConfigurationManager.AppSettings["WSSucursales.SucursalesWS"];
            oServicio.Credentials = CredentialCache.DefaultCredentials;
            List <WSSucursales.Regional> oListRegional = null;

            try
            {
                oListRegional = new List <WSSucursales.Regional>(oServicio.RegionalUdaiExternoTraer());
            }
            catch (Exception ex)
            {
                log.Error(string.Format("Error Ejecución:{0}->{1} - Error:{2}->{3}", DateTime.Now, System.Reflection.MethodBase.GetCurrentMethod(), ex.Source, ex.Message));
                return(null);
            }
            finally
            {
                oServicio.Dispose();
            }

            return(oListRegional);
        }