示例#1
0
        protected void Button1_Click(object sender, EventArgs e)
        {
            ServiceReference1.WebService1SoapClient client = new ServiceReference1.WebService1SoapClient();
            //var result = client.Add(1,6);
            //Response.Write(result.ToString());

            var             str  = client.GetUserInfoList();
            List <UserInfo> list = SerializerHelper.DeserializerToObject <List <UserInfo> >(str);

            foreach (var userInfo in list)
            {
                Response.Write(userInfo.UserName);
                Response.Write("</br>");
            }
        }