Fedex API

Published Sat, May 28 2005 15:38 | William

Since Web Services have become cool, I've tried to do as much with major commercial ones as I can.  The problem is that in professional terms, I haven't had many requirements where I really needed to use them.  I'm written some utilities for my own use that employ the Google API, the Amazon API and the PayPal API.  I picked up this Apress book  on a few of the major API's and I really liked it.  I was just checking out Wrox's site to see if my name had been added to the author list on the two books i'm working on ( I know, I know, that's lame but I wanted to send mom the link whenever it's updated) and I came across A similar Wrox book that covers the Fedex API as well (from the cover, the Author, Denise Gosnell looks pretty cute too I haven't been able to get any of the Fedex API Winforms samples to build - at least using the out of the box example. I ended up using Reflector and just recreated a new project w/ slightly modified versions of the dlls..

This is really cool and I'm guessing that combined with MapPoint (which I'm not necessarily a big fan of, but it works for the hobby type projects I do with it), you could add an even more compelling tracking feature.  Sure, it wouldn't be of much more value as things stand today ... if my package is in BIR status in Memphis, what good does having a map show me that do?  But in the near future, I'm guessing that they may open up some more stuff with GPS so you could see where the trucks were.  Yah, this wouldn't provide much of  a real benefit, but it would be cool and quite easy to do so I'm guessing it might be done

If anyone is interested in playing with the Fedex stuff and having trouble, let me know b/c I've recreated most of the Winforms project and it seems to be working pretty well right now [well in the sense that I'm not getting any exceptions - I don't have anything 'real' to track at the moment, but I'm thinking of ordering something and having it fedexed just to test it.

Finally, what about my Speech Server and X10 project.  Got phase 1 completed already.  Right now, it's pretty simple.  I have some extra speakers hooked into the boombox piece that one of my XM Radio's snaps into.  So I can hit a button, say “Annoy Kim” and It will turn the volume up (I can't sleep at night without the radio on - Kim can't sleep with it on.  I also have a very loud Cuckoo clock that can be turned off during the night hours - but I would never turn him off.  Kim really hates the radio at night, and my poor cuckoo when he comes out in the middle of the night).  I have a simple grammar, “Annoy Kim”, “More” , “Keep Annoying her”, “Really piss her off” and “Leave her alone” which turns the volume up a notch for the first three commands, turns it the whole way uip with the “Really piss her off” and mutes the radio with “Leave her alone”  She's with Sarah in North Charleston this weekend heading to a Water Park so I have a really cool surpise for her when she gets back.  I also have another grammar for Sarah “Wake Up Mommy Slowly”, and “Wake Mommy NOW”.  Sarah is a wonderful child and she's extremely smart - but she's also a bit devlish and there's NO doubt in my mind she's going to be very very excited about being able to wake up mommy.

I have too much in the way of screen shots and all to post it here, but I'll post a summary later tonight and have the code up on Knowdotnet.com afterward

Comments

# William said on May 28, 2005 6:25 PM:

Dude I hate to ruin it for you......no I don't let's be honest this will be fun. Denise Gosnell is the same Chick that wrote the book "Beginning Access 2003 VBA". That is one of the books that is like Bible for the type of wanna-be developer I hate and I'm pretty sure you do as well.


The Speech server thing sounds really cool!

# William said on May 28, 2005 8:12 PM:

Listen here Cornbread boy.... you don't need to be so friggin redundant. Alll you had to do is say "Access" and that would have made your point every bit as much as "...wanna-be developer..." Of everyone Andy - I expect a little more out of you because we've known each other this long. Are my "I hate Access" credentials even remotely in question. "I'm pretty sure you do as well." Bah. I'm throwing down the gauntlet Canfield - I hate Access EVEN MORE THAN YOU. And I hate it a lot more, and hated even longer than you. Remember the first day you realized that Access was the tool by which true pure evil perpetuates itself in the physical world? Well, 35 seconds before you had that realization... I had it first.

And, I saw an article in the week's Newsweek claiming that you actually read the Access book because you thought access was cooler than Oracle. They also have a co-worker of your who on the condition of anonymity said "Oh yes, the other day I was at lunch with Andy and he said "VBA is like Jenna Jameson and C++ is like Rosie O'Donnell. I'd trade control, from raw pointers to no-bounds checking on Arrays - for Option Explicit Off and Variant data types any day of the week."

Care to confirm or deny that? I also heard that you prefer the look and feel of Access to Pr0N and that up until recently, you didn't know the difference between a Class and a Macro.

Now apologize for not giving me the proper respect as a Died in the Wool Access Hater ;-)

On a serious note though - have you used the Fedex web service by any chance? I know you are a PIMP at GIS stuff... so far I'm a lamer and haven't branched out past MapPoint, but I'm trying to write a little chunk w/ MapPoint that will look at the Fedex tracking path and show images next to it. Yes, I konw, this is a dumb a33 idea now that I actually hashed it out - if you had 18 stops on the Fedex tracking, 18 maps on one page would not only render slower than cold mollasses - but it would be pretty much worthless - especially when you have a Arrived in Memphis followed by Departed Memphis, Arrived in Greenville -> Left for Destination. But mapping stuff with GPS is definitely slick.

Hope you're having a good weekend buddy - and I gotta run out for a few, but if you'll be up later, would like to get some tech advice from you later if you have a few minutes.

# William said on May 28, 2005 9:16 PM:

Heh :) That was awesome! I figured it would get a rise out of you.

On the Fedex thing I have a contract in the works to do something like that but for a freight company so they can see on a map the route their freight is taking, how long it's taking etc. They want it in Asp though and I'm trying to convince them their costs will be lower if they go with Php on Slackware Linux or Jsp on Solaris 10. As much as I like MSFT, Asp is a dog and Asp.Net while being a significant improvement still isn't as great as I had hopes for it to be. It should have blown Jsp out of the water and it really doesn't which is kind of sad given the time they have put into it.

The Fedex thing would be easy for the US and Canada it would be a bit harder if you were doing the whole world and you wanted to show the actual roads it traveled on as there isn't good road base for many countries in the third world. If you just wanted to do a city to city air route thingy that would be easy too but it would be better to do a by air or by land checkbox on the map and then if it's by land have it map out the route as well. Just do simple three frame map, put your package tracking number form in the left most frame, your map in the middle and your layers form on the right with any key info you want in it. You could do it all for free in Conus using the Tiger street data sets, Php on Apache and use PhpMapscript with UMN's Mapserver as the backend rendering engine. If you were at bare bones nothing you could probably have the whole thing done including the server set up in a month if you just worked on it on and off in the evenings. If you gave dedicated days to it you could have it fully setup and running in a bit over a week. The toughest part would be testing it because you would need a bunch of real tracking numbers to test with. Or does there API come with dummy routes and tracking numbers to test with?

I am building three servers this weekend(Monday) for my use here at the house and one of them will be running Slackware Linux with the needed GIS stuff on it. If everything goes smoothly in the server setup we can maybe throw something together. Does UPS have an API as well so we could both in the same mapping page? The others will be running Solaris 10, and SUSE Linux. They are all for testing against so this might be a good thing to do if I get time.

# William said on May 28, 2005 11:38 PM:

heh good news on the X10 / Speech Server stuff. You're ahead of me a little bit... just got the X10 .Net stuff cranked up this weekend.

North Charleston, SC?? That's like 15 minutes away from me... you should have totally come with her!

Later!
Chris

# TrackBack said on June 13, 2005 1:08 AM:

Fedex APIooeess

Search

This Blog

Tags

Community

Archives

News

My other sites

Cool Stuff

Book Stuff

Security

ORM

Data Access

Funny Stuff

Compact Framework Stuff

Web Casts

My KnowledgeBase Articles

My MVP Profile

Design Patterns

Performance

Debugging

Remoting

My Fellow Authors

My Books

LINQ

Misc

Speech

Syndication

Email Notifications