Exemplo n.º 1
0
        protected void CallB_Click(object sender, EventArgs e)
        {
            ServiceBClient client = null;

            try
            {
                client          = new ServiceBClient();
                LiteralWeb.Text = "B:" + client.GetSomething();
            }
            finally
            {
                client.Close();
            }
        }
        public string PassSomethingToB()
        {
            ServiceBClient client = null;

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