public static StoreDS GetStoreDetail(int companyID, int storeNumber) { //Get a list of store locations StoreDS stores = null; try { _Client = new IssueMgtServiceClient(); stores = _Client.GetStoreDetail(companyID, storeNumber); _Client.Close(); } catch (FaultException fe) { throw new ApplicationException("GetStoreDetail() service error.", fe); } catch (TimeoutException te) { _Client.Abort(); throw new ApplicationException("GetStoreDetail() timeout error.", te); } catch (CommunicationException ce) { _Client.Abort(); throw new ApplicationException("GetStoreDetail() communication error.", ce); } return(stores); }