Example #1
0
        public static bool LoadPickups(DateTime pickupDate, string routeClass)
        {
            //Load pickup data
            bool loaded = false;
            RSReportsServiceClient client = new RSReportsServiceClient();

            try {
                loaded = client.LoadPickups(pickupDate, routeClass);
                client.Close();
            }
            catch (TimeoutException te) { client.Abort(); throw new ApplicationException(te.Message); }
            catch (FaultException <RoadshowFault> rfe) { client.Abort(); throw new ApplicationException(rfe.Detail.Message); }
            catch (FaultException fe) { client.Abort(); throw new ApplicationException(fe.Message); }
            catch (CommunicationException ce) { client.Abort(); throw new ApplicationException(ce.Message); }
            return(loaded);
        }