Pauls Rants & Revelations

Thoughts not fit for human consumption.

  • Home
  • About Paul
  • Contact
  • Disclosure Policy

Instagr.am-ness

#strangetrees growing in my backyard. A bored 6 year old + vinegar + baking soda + raisins = Science bitches!Scary #trees and the #moon. Drawing blood. I hate needles. First thing I did when I got to #sanfrancisco is grab a hot dog from a street vendor. #bonus#sunset over San FranciscoProof I'm in the kewl crowd. #macworld2012 #macworldconferenceThe Airtram at SFO has no driver. Cool, and sorta scary. At least it can't go of course.

Tweet Tweet

  • Note to self: If your left over chicken smells like crotch, best to just throw it away.
  • A bored 6 year old + vinegar + baking soda + raisins = Science bitches! http://t.co/5jh6CseZ
  • Scary #trees and the #moon. http://t.co/dknfkoz3

The Stuff

  • Design
  • Development
  • Family
  • Gaming
  • Humor
  • Life
  • News
  • Politics
  • Random
  • Rants
  • Reviews
  • Technology

The Old Stuff

  • September 2010
  • August 2010
  • January 2010
  • April 2009
  • March 2009
  • November 2008
  • October 2008
  • September 2008
  • August 2008
  • July 2008
  • June 2008
  • May 2008
  • April 2008
  • March 2008
  • February 2008
  • January 2008
  • December 2007
  • November 2007
  • October 2007
  • September 2007
  • August 2007
  • July 2007
  • June 2007
  • May 2007
  • April 2007
  • March 2007
  • February 2007
  • January 2007
  • December 2006
  • November 2006
  • August 2006
  • July 2006
  • June 2006
  • May 2006
  • March 2006
  • January 2006
  • October 2005
  • June 2005
  • March 2004
  • February 2004
  • January 2004

Tag – You’re It

admins apple archery bath battery birthday customer love Development duncan election Family fireflys genger Humor iphone katen kitten Life mac megan nifty obama opinion peggle peggy. birthday picnic poems Politics popcap president race rant Rants sca support swelling Technology tinker Tom treehouse triathlon vote weekend
21 th Feb

FedEx woes – resolved -sorta

Posted by Paul to Development ,Humor

fedex_post.jpgI have been messing with the FedEx API for a client for the better part of 2 months. After many irritated phone calls (and more than a few insults to their IVR system) they finally told me that what we wanted to do would not be possible. Ever.

I primarily develop on a Windows 2003 server. Their ATOM software (that controls the API dll) will not work on a 2003 box. This they told me after 2 months of hassle with it. Needless to say I was a little miffed.

But where one door is shut voilently in your face (doorknob hitting you in the ass and all), another door opens. This door, a small, rathole sized door, came in the form of an XML request.

It turns out that if you cannot use their API, they offer the option of calling their servers directly using an XML request. They dont normally tell people this and the documentation for it is laughable at best, but it turns out that it works. And whats more, it works better than their API option. And whats more than that, Their request comes back as an XML string so we can parse it to our desires (sweet).

So after about 5 minutes on google, a site what yeilded that explained, in detail, exactly how to do what we want using an XML request.

http://www.tek-tips.com/faqs.cfm?fid=6397

I copied the exact code he had, added in the clients specific info, and you know what; it WORKED. We got a positive response. Another hour and we were getting back exactly what we wanted; the Net Charge of the shipping (we only needed this one stinking number).

There is still work to do to integrate it into the clients site, but this is a major step forward. The rest (making a function, integrating into the cart, etc) is small beans compared to this victory.

So, for all those who are messing with the FedEx API, trying to get information from it, give up now and cut your losses. Go with the Direct XML request. It works beautifully on any system (windows, unix or other as long as you can parse XML) and you dont have to install anything.

The only other option I would suggest is to try UPS.

Cheers

Update: After two hours of tinkering, I finally have a nice selection box that displays all of the shipping estimates for the various services based on where they are going. Im almost amazed since I have gotten further in 2 hours than I have in 2 months. OK. Back to the grindstone. – Cheers

Tags:

Leave a Reply

Click here to cancel reply.

Copyright 2008 Pauls Rants & Revelations. Designed by Diamonds Designers. Powered by WordPress.

Posts RSS Comments RSS