ASPShipping - Live UPS, USPS and FedEx Shipping Rates ASP/XML
As promised I've released a new revision of ASPShipping to include FedEx shipping rates. One odd thing about FedEx is that you can't retrieve rates for all available services (unless I'm missing something from the XML documentation) you have to request a rate from one of the available services one at a time. So instead of one XML request that includes all of the available rates, you have to make multiple XML calls for each service you'd like rate information from.For example, FedEx Ground, FedEx Express Priority Over Night and FedEx Express Standard Over Night all require separate XML calls to retrieve rates. This is really inefficient and adds to the time required to retrieve a comprehensive rate list.
One other odd thing about FedEx is that they return a bunch of information that isn't really required. Detailed information about fuel costs to ship and other expenses that they incur. While this is interesting information it's not particularly relevant to what we're trying to accomplish which is to just retrieve a rate.
Anyway here is the update. Enjoy.
| Send this to: |

Comments
Simmy said...
I just dowloaded this code and it looks to be a big help for me in a project I am working on, thanks. Do you have any tips or guidance on working with fedex on getting a shipping label and tracking
number without having to install a dll?
Thanks
6/7/2007 1:35:42 AM
Nate+Rice said...
A shipping label is going to be a lot more complex. So my advice to you
would be to avoid it if at all possible. Tracking numbers are going to
follow a very similar routine as the shipping code. Post XML, retrieve
XML, parse results. Simplistic really. Try to adapt the existing functions
for the tracking number URL.
6/7/2007 3:20:45 PM
Mark said...
Just want to post a thank you for sharing the code. It helped me in making comparison and fix a broken ups code I got stuck with.
6/21/2007 12:07:09 PM
shekhar Mehta said...
I have downloaded this code and it is working fine..but i m facing one problem..if recipient is from country other than usa then i m getting error...can any one sort this out???
8/2/2007 12:32:18 PM
TAF said...
Maybe I am just not experienced enough, but how do I disable one or more of the methods? (Line numbers would be great.)
10/31/2007 2:08:22 PM
Nathan+Rice said...
That's only supported in the FedEx component at the moment. You could do this manually in one of the functions but the thought that you'd want to do this didn't occur to me until I was coding the FedEx portion. There have been a TON of feature requests for this script lately and I will be adding this functionality as well as some other stuff in an upcoming release.
10/31/2007 2:15:02 PM
TAF said...
Thank you. Could I comment out an entire grouping, like to remove UPS entirely?
11/1/2007 10:49:18 AM
BH said...
First, let me say thanks for publishing your work to help people like me. I am having a little trouble with the new version with fedex. I have a Test account number and a Test meter number that they issued me. I get the following error: 80040b1a - Authorization failure. Perhaps username and/or password is incorrect
The old version works fine
any suggestions would be appreciated.
Thanks
4/3/2008 12:14:14 PM
Nathan Rice said...
The URL may have changed recently. I can't say for sure but I know that FedEx changes their testing environment and doesn't mention it to anyone, so I'd just double check the URL and your credentials.
Ton's of people use this code and have commented on it so I know that it works. Just double check all the variables.
4/4/2008 12:56:01 PM
said...
hi,
I have downloaded this code and it is working fine..but i m facing one problem..only one destination information is working.all other destinations give the error... "There is an error in XML Document " can any one sort this out???
9/24/2009 5:59:35 AM
said...
Hello,
Great Script i was looking this script from last 2 Months and today i found on your website....
I get the following error: 80040b1a - Authorization failure. Perhaps username and/or password is incorrect
Can you please guide me ??
anyways thanks for this script again
6/15/2010 9:27:47 AM