protected static string GetApplicationSettings(string sKey) { string sValue = null; //check if the AppSettings section has items if (System.Web.Configuration.WebConfigurationManager.AppSettings.Count > 0) { sValue = System.Web.Configuration.WebConfigurationManager.AppSettings[sKey]; } return sValue; } /// public IProcesosWSservice() { string TressProcesos = GetApplicationSettings("LLAVE"); this.Url = TressProcesos; if ((this.IsLocalFileSystemWebService(this.Url) == true)) { this.UseDefaultCredentials = true; this.useDefaultCredentialsSetExplicitly = false; } else { this.useDefaultCredentialsSetExplicitly = true; } }