コード例 #1
0
        public static LocationDS GetRegions(string clientNumber)
        {
            //Get a list of client divisions
            LocationDS regions = null;

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