Exemple #1
0
        public static string login(string login, string pwd, string proname, bool test)
        {
            XmlUser xmlUser = new XmlUser
            {
                login   = login,
                psw     = pwd,
                proname = proname
            };
            XmlDocument xmlDoc = OiEmData.Org_UserLogin(SerializeToXmlDocument(xmlUser) as XmlDocument);

            return(xmlDoc.OuterXml);
        }
Exemple #2
0
        public static ResultInfo <XmlResultUserLogin> login(string login, string pwd, string proname)
        {
            XmlUser xmlUser = new XmlUser
            {
                login   = login,
                psw     = pwd,
                proname = proname
            };
            XmlDocument        xmlDoc        = OiEmData.Org_UserLogin(SerializeToXmlDocument(xmlUser) as XmlDocument);
            XmlResult          xmlResult     = DeserializeXmlDocument(typeof(XmlResult), xmlDoc) as XmlResult;
            XmlResultUserLogin xmlResultUser = DeserializeXmlDocument(typeof(XmlResultUserLogin), (xmlResult.revalue as XmlNode[])[0]) as XmlResultUserLogin;

            return(new ResultInfo <XmlResultUserLogin>
            {
                code = xmlResult.recode,
                msg = xmlResult.err,
                obj = xmlResultUser
            });
        }