public static bool CanLoadPickups(DateTime pickupDate, string routeClass) { bool ret = false; try { _Client = new RoadshowServiceClient(); ret = _Client.CanLoadPickups(pickupDate, routeClass); _Client.Close(); } catch (FaultException fe) { throw new ApplicationException("CanLoadPickups() service error.", fe); } catch (TimeoutException te) { _Client.Abort(); throw new ApplicationException("CanLoadPickups() timeout error.", te); } catch (CommunicationException ce) { _Client.Abort(); throw new ApplicationException("CanLoadPickups() communication error.", ce); } return(ret); }