Пример #1
0
        private void button_sayBye_Click(object sender, EventArgs e)
        {
            SelServiceClient mySc = new SelServiceClient(nowBinding, myEp);

            mySc.SayBye(12);
            AddInfo("SayBye in  oneWay");
        }
Пример #2
0
        private void button_isWho_Click(object sender, EventArgs e)
        {
            SelServiceClient mySc   = new SelServiceClient(nowBinding, myEp);
            MyData           myData = new MyData();

            myData.Name   = "lj";
            myData.exInfo = "ex";
            myData.IsMan  = true;
            AddInfo(mySc.WhoIs(myData));
        }
Пример #3
0
        private void button_sayHello_Click(object sender, EventArgs e)
        {
            SelServiceClient sc = new SelServiceClient();

            EndpointAddress  ep          = new EndpointAddress("http://localhost:8080/SelService");
            BasicHttpBinding httpBinding = new BasicHttpBinding();

            SelServiceClient mySc = new SelServiceClient(nowBinding, ep);

            AddInfo(mySc.SayHello(12));
        }