public static String You9Register(string account, string element)
        {
            System.Data.DataSet ds = null;
            string serverIP        = null;

            try
            {
                ds = SqlHelper.ExecuteDataset("select ServerIP,dbName,userName,passwd from gmtools_serverInfo where gameid=999");
                if (ds != null && ds.Tables[0].Rows.Count > 0)
                {
                    serverIP = ds.Tables[0].Rows[0].ItemArray[0].ToString();
                    XmlDocument    xmlfile   = new XmlDocument();
                    string         md5string = MD5EncryptAPI.MDString(account + "HAOHAOXUEXI");
                    string         url       = "http://" + serverIP + "/gmtools?req=queryUser&type=0&userid=" + account + "&s=" + md5string;
                    HttpWebRequest request   = (HttpWebRequest)
                                               WebRequest.Create(url);
                    //request.ContentType="GB2312";
                    request.KeepAlive = false;
                    WebResponse  resp = request.GetResponse();
                    StreamReader sr   = new System.IO.StreamReader(resp.GetResponseStream());
                    xmlfile.Load(sr);
                    XmlNode node = xmlfile.SelectSingleNode(element);
                    sr.Close();
                    return(node.InnerText);
                }
                return("");
            }
            catch (System.Exception e)
            {
                return(e.Message);
            }
        }
        public static ArrayList You9Register(string account, int type)
        {
            StreamReader sr      = null;
            ArrayList    list    = new ArrayList();
            XmlDocument  xmlfile = new XmlDocument();

            System.Data.DataSet ds = null;
            try
            {
                string serverIP = null;
                ds = SqlHelper.ExecuteDataset("select ServerIP from gmtools_serverInfo where gameid=999");
                if (ds != null && ds.Tables[0].Rows.Count > 0)
                {
                    serverIP = ds.Tables[0].Rows[0].ItemArray[0].ToString();
                    string md5string = null;
                    if (type == 0)
                    {
                        md5string = MD5EncryptAPI.MDString(account + "HAOHAOXUEXI");
                    }
                    else
                    {
                        md5string = MD5EncryptAPI.MDString("HAOHAOXUEXI");
                    }
                    Uri            url     = new Uri("http://" + serverIP + "/gmtools?req=queryUser&type=" + type + "&userid=" + account + "&s=" + md5string);
                    HttpWebRequest request = (HttpWebRequest)
                                             WebRequest.Create(url);
                    request.ContentType = "application/x-www-form-urlencoded";
                    request.KeepAlive   = false;
                    WebResponse resp = request.GetResponse();
                    sr = new System.IO.StreamReader(resp.GetResponseStream());
                    // Console.WriteLine(sr.ReadToEnd());
                    xmlfile.Load(sr);
                    XmlNode nodes = xmlfile.SelectSingleNode("you9/user");
                    if (nodes != null)
                    {
                        //ds.ReadXml(sr.BaseStream);
                        //result.Tables.Add(ds.Tables["user"]);
                        //;
                        foreach (XmlNode xmlnodes in nodes.ChildNodes)
                        {
                            list.Add(xmlnodes.InnerText);
                        }
                    }
                    else
                    {
                        Console.WriteLine(sr.ReadToEnd());
                    }
                    return(list);
                }
                return(list);
            }
            catch (System.Exception e)
            {
                Console.WriteLine("Login Center 通讯出现错误!");
                return(list);
            }
            finally
            {
                sr.Close();
            }
        }