public IHttpActionResult get(int a, int b)
        {
            MulServiceClient MSC = new MulServiceClient("BasicHttpBinding_IMulService");

            var result = MSC.Mul(a, b);


            return(Ok($"Can ! {result.ToString()}"));
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            MulServiceClient client = new MulServiceClient("BasicHttpBinding_IMulService");

            lblmsgv1.InnerText = client.Mul(1, 2).ToString();
        }
Beispiel #3
0
    protected void Button1_Click(object sender, EventArgs e)
    {
        MulServiceClient MSC = new MulServiceClient("BasicHttpBinding_IMulService");

        Response.Write(MSC.Mul(5, 5));
    }