Ejemplo n.º 1
0
        protected void CallAB_Click(object sender, EventArgs e)
        {
            ServiceAClient client = null;

            try
            {
                client          = new ServiceAClient();
                LiteralWeb.Text = "A -> B:" + client.PassSomethingToB();
            }
            finally
            {
                client.Close();
            }
        }
        public string PassSomethingToAToB()
        {
            ServiceAClient client = null;

            try
            {
                client = new ServiceAClient();
                return(client.PassSomethingToB());
            }
            finally
            {
                client.Close();
            }
        }