Example #1
0
        public static RSReportsDataset GetScanAudits(DateTime routeDate, string routeClass)
        {
            //
            RSReportsDataset       scans  = new RSReportsDataset();
            RSReportsServiceClient client = new RSReportsServiceClient();

            try {
                DataSet ds = client.ReadScanAudits(routeDate, routeClass);
                if (ds != null)
                {
                    scans.Merge(ds);
                }
                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(scans);
        }