public SubscriptionResponse Send(string serviceUrl)
        {
            SubscriptionResponse result = new SubscriptionResponse();

            string xmlToSend   = BuildXml();
            string responseXml = RateService.SendRequest(serviceUrl, xmlToSend);

            result.Parse(responseXml);

            return(result);
        }
Beispiel #2
0
        public RateResponse Send(string serviceUrl)
        {
            RateResponse result = new RateResponse();

            string xmlToSend   = BuildXml();
            string responseXml = RateService.SendRequest(serviceUrl, xmlToSend);

            result.Parse(responseXml);

            if (globals.DiagnosticsMode)
            {
                _logger.LogMessage("FedEx Diagnostics - Request="
                                   + xmlToSend + "<br/>"
                                   + System.Environment.NewLine
                                   + "<br/>"
                                   + System.Environment.NewLine
                                   + " Response="
                                   + responseXml);
            }

            return(result);
        }