Beispiel #1
0
        public ClassesAndWeightsResponse GetClassesAndWeights(DataModule dataModule)
        {
            //
            ClassesAndWeightsResponse classes = null;
            RateWareXLPortTypeClient  client  = new RateWareXLPortTypeClient();

            try {
                AuthenticationToken authToken = getAuthenticationToken();
                if (client.isReady(authToken))
                {
                    classes = client.DataModuleValidClassesAndWeights(authToken, dataModule);
                }
                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(classes);
        }