Beispiel #1
0
        protected void CallBA_Click(object sender, EventArgs e)
        {
            ServiceBClient client = null;

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

            try
            {
                client = new ServiceBClient();
                return(client.PassSomethingToA());
            }
            finally
            {
                client.Close();
            }
        }