示例#1
0
 private void Button1_Click(object sender, EventArgs e)
 {
     ServiceReference1.Service1Client client = new ServiceReference1.Service1Client(endpointConfigurationName: "BasicHttpBinding_IService1");
     label2.Text = client.HelloService(textBox1.Text);
 }