سؤال

I am not getting correct response from UPS when I am sending my response compared to the calculator they have online. Here is the link where you can see the data I am sending to UPS in XML Format: https://dl.dropbox.com/u/4571235/example.xml

The results I am getting in my code are these: http://gyazo.com/70d494bf47c7c9864e2094471f15fea2.png?1339458514

And the results which I need to get (and I am getting when I am entering the same parameters online at UPS web): http://gyazo.com/f3b97ed3875ab80d3c4892a2275f6670.png?1339458571

Please let me know if I have something wrong in my xml doc or somewhere else. Thanks, Laziale

هل كانت مفيدة؟

المحلول

First, change your title - this has nothing to do with ASP.Net....

It's been a long time since I've integrated UPS but if memory serves, you should provide the same information in your request because they all matter in the calculation:

E.g.

  1. Scheduled pickup or drop-off?
  2. You didn't provide full address in your request, just a zip code, so Residential Indicator matters (a lot) - re: residential destination vs commercial destination
  3. Are you being provided retail rates or your UPS account rates?

And so on.....

نصائح أخرى

Try changing

<RatingServiceSelectionRequest xml:lang='en-US'>

To:

<RatingServiceSelectionRequest>
مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top