예제 #1
0
        public PerfilResponse leerPerfilesPorApp([System.Xml.Serialization.XmlElementAttribute(Namespace = "http://pe/com/claro/esb/services/auditoria/schemas/aplicaciones/perfil.xsd")] PerfilRequest PerfilRequest)
        {
            object[] results = this.Invoke("leerPerfilesPorApp", new object[] {
                PerfilRequest
            });

            return((PerfilResponse)(results[0]));
        }
예제 #2
0
        public ArrayList LeerPerfilesPorApp(string cod_aplicacion, ref string errorMsg, ref string codError)
        {
            AuditoriaWS.PerfilType[] objSeg;
            ArrayList lista = new ArrayList();

            AuditoriaWS.PerfilRequest  objRequest  = new AuditoriaWS.PerfilRequest();
            AuditoriaWS.PerfilResponse objResponse = new AuditoriaWS.PerfilResponse();

            objRequest.codAplicacion = cod_aplicacion;

            AuditoriaWS.EbsAuditoriaService objAuditoria = new AuditoriaWS.EbsAuditoriaService();
            objAuditoria.Url         = ConfigurationSettings.AppSettings["consRutaWSSeguridad"];
            objAuditoria.Credentials = System.Net.CredentialCache.DefaultCredentials;

            objResponse = objAuditoria.leerPerfilesPorApp(objRequest);

            errorMsg = objResponse.resultado.mensaje;
            codError = objResponse.resultado.estado;
            objSeg   = objResponse.perfiles.item;



            if (codError == "1")
            {
                if (objSeg != null)
                {
                    for (int i = 0; i < objSeg.Length; i++)
                    {
                        NivelAprobacion item = new NivelAprobacion();
                        item.CODIGO     = objSeg[i].codigo;
                        item.CANAL      = objSeg[i].descripcion;
                        item.DIASMINIMO = "0";
                        lista.Add(item);
                    }
                }
            }
            return(lista);
        }
예제 #3
0
 /// <remarks/>
 public System.IAsyncResult BeginleerPerfilesPorApp(PerfilRequest PerfilRequest, System.AsyncCallback callback, object asyncState)
 {
     return(this.BeginInvoke("leerPerfilesPorApp", new object[] {
         PerfilRequest
     }, callback, asyncState));
 }