Пример #1
0
		private void cmdError_Click(object sender, EventArgs e)
		{
			EmployeesService proxy = new EmployeesService();
			try
			{
				int count = proxy.GetEmployeesCountError();
			}
			catch (SoapException err)
			{
				MessageBox.Show("Original error was: " + err.Detail.InnerText);
			}

		}
Пример #2
0
        private void cmdTestError_Click(object sender, System.EventArgs e)
        {
            // Create the proxy.
            EmployeesService proxy = new EmployeesService();

            try
            {
                int count = proxy.GetEmployeesCountError();
            }
            catch (SoapException err)
            {
                MessageBox.Show("Original error was: " + err.Detail.InnerText);
            }
        }