public string generaXmlIdentificacion(string clCliente, string clPassword)
        {
            LicenciamientoOperaciones operaciones  = new LicenciamientoOperaciones();
            E_INFORMACION_CLIENTE     vInfoCliente = new E_INFORMACION_CLIENTE();

            var Info = operaciones.generaXmlIdentificacion(clCliente, clPassword);

            if (Info.CL_CLIENTE != null)
            {
                vInfoCliente.CL_CLIENTE  = Info.CL_CLIENTE;
                vInfoCliente.CL_PASSWORD = Info.CL_PASSWORD;
                vInfoCliente.ID_CLIENTE  = Info.ID_CLIENTE;
                vInfoCliente.EMPRESAS    = obtieneEmpresasCliente(Info.CATALOGOS);
                vInfoCliente.SISTEMAS    = obtieneSistemas(Info.CATALOGOS);
                vInfoCliente.MODULOS     = obtieneModulos(Info.CATALOGOS);
                vInfoCliente.VERSIONES   = obtieneVersiones(Info.CATALOGOS);
                vInfoCliente.FE_CREACION = Info.FE_CREACION;

                return(construyeXml(vInfoCliente));
            }
            else
            {
                return("");
            }
        }
        public string construyeXml(E_INFORMACION_CLIENTE vInfoCliente)
        {
            XElement xmlLicenciamiento = new XElement("LICENCIAMIENTO", new XElement("CLIENTE", new XAttribute("CL_CLIENTE", vInfoCliente.CL_CLIENTE), new XAttribute("CL_PASSWORD", vInfoCliente.CL_PASSWORD), new XAttribute("FE_CREACION", vInfoCliente.FE_CREACION), new XElement("SISTEMAS", getSistemasXml(vInfoCliente.SISTEMAS, vInfoCliente.EMPRESAS, vInfoCliente.MODULOS, vInfoCliente.VERSIONES))));

            return(xmlLicenciamiento.ToString());
        }