Ejemplo n.º 1
0
 public ActionResult Index(string userName)
 {
     HelloService.HelloServiceClient client = new HelloService.HelloServiceClient("BasicHttpBinding_IHelloService");
     ViewBag.Message = client.GetMessage(userName);
     return(View());
 }
Ejemplo 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);
 }
Ejemplo 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);
 }
Ejemplo 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);
 }