public static int CreateContact(Contact contact) { int id = 0; try { _Client = new IssueMgtServiceClient(); id = _Client.CreateContact(contact); _Client.Close(); } catch (FaultException fe) { throw new ApplicationException("CreateContact() service error.", fe); } catch (TimeoutException te) { _Client.Abort(); throw new ApplicationException("CreateContact() timeout error.", te); } catch (CommunicationException ce) { _Client.Abort(); throw new ApplicationException("CreateContact() communication error.", ce); } return(id); }