Ejemplo n.º 1
0
        public static string GetCompany(int companyID)
        {
            //Get a company for the specified id
            string company = "";

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