Exemple #1
0
        public static LocationDS GetDistricts(string clientNumber)
        {
            //Get a list of client divisions
            LocationDS districts = null;

            try {
                _Client   = new IssueMgtServiceClient();
                districts = _Client.GetDistricts(clientNumber);
                _Client.Close();
            }
            catch (FaultException fe) { throw new ApplicationException("GetDistricts() service error.", fe); }
            catch (TimeoutException te) { _Client.Abort(); throw new ApplicationException("GetDistricts() timeout error.", te); }
            catch (CommunicationException ce) { _Client.Abort(); throw new ApplicationException("GetDistricts() communication error.", ce); }
            return(districts);
        }