Exemplo n.º 1
0
 public ActionResult Index(string userName)
 {
     HelloService.HelloServiceClient client = new HelloService.HelloServiceClient("BasicHttpBinding_IHelloService");
     ViewBag.Message = client.GetMessage(userName);
     return(View());
 }
Exemplo n.º 2
0
 protected void Button1_Click(object sender, EventArgs e)
 {
     HelloService.HelloServiceClient client = new HelloService.HelloServiceClient("BasicHttpBinding_IHelloService");
     Label1.Text = client.GetMessage(TextBox1.Text);
 }
Exemplo n.º 3
0
 protected void Button1_Click(object sender, EventArgs e)
 {
     HelloService.HelloServiceClient client = new HelloService.HelloServiceClient("BasicHttpBinding_IHelloService");
     Label1.Text = client.GetMessage(TextBox1.Text);
 }
Exemplo n.º 4
0
 private void button1_Click(object sender, EventArgs e)
 {
     HelloService.HelloServiceClient cl = new HelloService.HelloServiceClient("NetTcpBinding_IHelloService");
     label1.Text = cl.GetMessage(textBox1.Text);
 }