Exemplo n.º 1
0
        private void button1_Click(object sender, EventArgs e)
        {
            textBox1.Text = string.Empty;

            try
            {
                string wGetDataResult = clientProxy.GetData(Convert.ToInt32(txtInput.Text));

                MessageBox.Show(wGetDataResult);
            }
            catch (FaultException fx)
            {
                textBox1.Text = "FaultException\r\n" + Fwk.Exceptions.ExceptionHelper.GetAllMessageException(fx);
                clientProxy.Abort();
            }
            catch (Exception err)
            {
                textBox1.Text = Fwk.Exceptions.ExceptionHelper.GetAllMessageException(err);
                clientProxy.Abort();
            }
        }