Exemplo n.º 1
0
        public static DataSet GetSortCenters()
        {
            //Get a list of sortCenters (terminals or shippers)
            DataSet sortCenters = null;
            ShipScheduleServiceClient client = new ShipScheduleServiceClient();

            try {
                sortCenters = client.GetSortCenters(int.Parse(Program.TerminalCode));
                client.Close();
            }
            catch (TimeoutException te) { client.Abort(); throw new ApplicationException(te.Message); }
            catch (FaultException fe) { client.Abort(); throw new ApplicationException(fe.Message); }
            catch (CommunicationException ce) { client.Abort(); throw new ApplicationException(ce.Message); }
            return(sortCenters);
        }