Exemplo n.º 1
0
        protected void Button1_Click(object sender, EventArgs e)
        {
            Model.StuModel stu = new Model.StuModel();
            stu.id      = 1;
            stu.stuname = "yoki";
            Service1 wCFTestClient = new Service1();

            TextBox1.Text = wCFTestClient.getname(stu);
        }
Exemplo n.º 2
0
        private void button2_Click(object sender, EventArgs e)
        {
            Model.StuModel stu = new Model.StuModel();
            stu.id      = 1;
            stu.stuname = "yoki";

            WCFTest.WCFTestClient wCFTestClient = new WCFTest.WCFTestClient();
            MessageBox.Show(wCFTestClient.TestStr(stu));
        }
Exemplo n.º 3
0
        private void button1_Click(object sender, EventArgs e)
        {
            Model.StuModel stu = new Model.StuModel();
            stu.id      = 1;
            stu.stuname = "yoki";

            WCFTest.WCFTestClient wCFTestClient = new WCFTest.WCFTestClient();
            wCFTestClient.Test(stu);
        }
Exemplo n.º 4
0
 public string getname(Model.StuModel s)
 {
     return("hello" + s.stuname);
 }
Exemplo n.º 5
0
 public string TestStr(Model.StuModel stu)
 {
     return(base.Channel.TestStr(stu));
 }
Exemplo n.º 6
0
 public void Test(Model.StuModel stu)
 {
     base.Channel.Test(stu);
 }