Esempio n. 1
0
        public static ContactDS GetContacts(int companyID, string regionNumber, string districtNumber, string agentNumber, string storeNumber)
        {
            ContactDS contacts = null;

            try {
                _Client  = new IssueMgtServiceClient();
                contacts = _Client.GetContactsForLocation(companyID, regionNumber, districtNumber, agentNumber, storeNumber);
                _Client.Close();
            }
            catch (FaultException fe) { throw new ApplicationException("GetContacts() service error.", fe); }
            catch (TimeoutException te) { _Client.Abort(); throw new ApplicationException("GetContacts() timeout error.", te); }
            catch (CommunicationException ce) { _Client.Abort(); throw new ApplicationException("GetContacts() communication error.", ce); }
            return(contacts);
        }