private void button_sayBye_Click(object sender, EventArgs e) { SelServiceClient mySc = new SelServiceClient(nowBinding, myEp); mySc.SayBye(12); AddInfo("SayBye in oneWay"); }
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)); }
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)); }