There was a need to track Federal Express Packages for my company from within my application. This Web Service was created with one public ally-accessible function—GetFedexTracking. This function takes two parameters. The first is an internal reference number or a FEDEX tracking number. The second is a string indicating the method of tracking. An XML document with the tracking information—or error information—is the result of this method call.
Things Necessary to Make This Work for You
If you do a search for word CHANGE, you will find four occurrences, including the one in this comment. Simply make the three necessary changes:
- Set the FEDEX_ACCOUNT constant to your account number.
- Set the FEDEX_URL constant to the URL given to you by FEDEX.
- Set the referrer property of the req object to your company name.
Feel free to use this as you see fit. All I ask is that if you make any enhancements, please send them to me. I know that this code is not very complex, but it was a pain to figure out because I could find no good samples around on how to do some of the things necessary to accomplish this.