public LTLPointListResponse GetLTLPointList(LTLPointListRequest request) { // LTLPointListResponse response = null; try { response = new RateWareGateway().GetLTLPointList(request); } catch (Exception ex) { throw new FaultException <RateQuoteFault>(new RateQuoteFault(ex.Message), "Service Error"); } return(response); }
public static LTLPointListResponse GetLTLPointList(LTLPointListRequest request) { // LTLPointListResponse response = null; RateQuoteServiceClient client = new RateQuoteServiceClient(); try { response = client.GetLTLPointList(request); client.Close(); } catch (TimeoutException te) { client.Abort(); throw new ApplicationException(te.Message); } catch (FaultException <RateQuoteFault> 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(response); }
public LTLPointListResponse GetLTLPointList(LTLPointListRequest request) { // LTLPointListResponse response = null; RateWareXLPortTypeClient client = new RateWareXLPortTypeClient(); try { AuthenticationToken authToken = getAuthenticationToken(); if (client.isReady(authToken)) { response = client.LTLPointList(authToken, request); } 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(response); }