private void button1_Click(object sender, EventArgs e) { //manual wcf service link for this Application WSHttpBinding binding = new WSHttpBinding(); EndpointAddress endpoint = new EndpointAddress(new Uri("http://197.168.0.11//WcfSample1/Service1.svc")); Service1Client Client1 = new Service1Client(binding,endpoint); MessageBox.Show(Client1.GetData(Convert.ToInt16(textBox1.Text))); }
<pre lang="c#"> private void button1_Click(object sender, EventArgs e) { Service1Client Client1 = new Service1Client(); MessageBox.Show(Client1.GetData(Convert.ToInt16(textBox1.Text))); } </pre>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)