Exemple #1
0
        public static List <WSPrestador.Prestador> Traer_Prestadores_Entrega_FGS()
        {
            WSPrestador.PrestadorWS oServicio = new WSPrestador.PrestadorWS();
            oServicio.Url         = ConfigurationManager.AppSettings["WSPrestador.PrestadorWS"];
            oServicio.Credentials = CredentialCache.DefaultCredentials;
            List <WSPrestador.Prestador> oListPretadores = null;

            try
            {
                oListPretadores = new List <WSPrestador.Prestador>(oServicio.Traer_Prestadores_Entrega_FGS());

                return(oListPretadores);
            }
            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));
                throw ex;
            }
            finally
            {
                oServicio.Dispose();
            }
        }