Пример #1
0
 public E.VMModulo ObtenerInfoModulo(int idModulo)
 {
     try
     {
         S.Serv_Admin.ServiceGestionClient serPi = new S.Serv_Admin.ServiceGestionClient("BasicHttpBinding_IServiceGestion");
         serPi.ClientCredentials.UserName.UserName = this.usuario;
         serPi.ClientCredentials.UserName.Password = this.pass;
         //serPi.ClientCredentials.ServiceCertificate.Authentication.CertificateValidationMode =
         //         X509CertificateValidationMode.None;
         E.VMModulo modulo = serPi.ObtenerInfoModuloSistemaApp(idModulo);
         serPi.Close();
         return(modulo);
     }
     catch (FaultException <E.ExceptionService> ex)
     {
         throw new Exception(ex.Detail.Mensaje);
     }
 }
Пример #2
0
 public E.VMModulo RegistrarModulo(string nombre, int idSistema, string urlIcono, string urlDestino
                                   , string dbConexion, bool activo)
 {
     try
     {
         S.Serv_Admin.ServiceGestionClient serPi = new S.Serv_Admin.ServiceGestionClient("BasicHttpBinding_IServiceGestion");
         serPi.ClientCredentials.UserName.UserName = this.usuario;
         serPi.ClientCredentials.UserName.Password = this.pass;
         //serPi.ClientCredentials.ServiceCertificate.Authentication.CertificateValidationMode =
         //         X509CertificateValidationMode.None;
         E.VMModulo modulo = serPi.RegistrarModuloSistemaApp(nombre, idSistema, urlIcono, urlDestino, dbConexion, activo);
         serPi.Close();
         return(modulo);
     }
     catch (FaultException <E.ExceptionService> ex)
     {
         throw new Exception(ex.Detail.Mensaje);
     }
 }