Esempio n. 1
0
        public static CompanyDS GetCompanies(bool activeOnly)
        {
            //Companies
            CompanyDS companies = null;

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