Tuesday, February 26, 2008

Fedex Track Service v2 : Cannot Authenticate

I was trying to deploy the track service via api for one of my clients and I was using the fedex php examples they provided. Unfortunately, I kept on getting an authentication error. It seemed the credentials Fedex had provided me where invalid. I tested this across several servers and then moved on to other api calls... it seemed it was the track service that was causing the issue.

After much debugging, support tickets, and hair turned white - we were finally able to get to the bottom of it. If you look in the wsdl, the call to the gateway is being made to

https:///gateway.fedex.com:443/web.services

try changing this to

https://gatewaybeta.fedex.com:443/web.services

the simple difference is the beta in 'gatewaybeta'. This routes you to the testing servers vs the production servers.

Hope this helps you. I spent days going back and forth on this.

Labels: , , , , , , , , , , , , , , , , ,

11 Comments:

At March 25, 2008 3:06 PM , Blogger Allen said...

Thanks for posting this, I have been fighting with this for hours and FedEx's website was no help.

 
At March 25, 2008 3:13 PM , Blogger mauricio said...

It's my pleasure. I appreciate that you left a comment - it lets me know that my posts actually help people and that is the goal.

Have a great day!

 
At June 5, 2008 10:03 AM , Blogger Victor said...

I downloaded their newest WSDL, PHP samples, obtained developer credentials...
I keep on getting the same authentication error - Authentication Failed.
The gateway address at the bottom of the WSDL is
https://gatewaybeta.fedex.com:443/web-services
Any ideas?

 
At June 5, 2008 3:05 PM , Blogger Allen said...

https://gatewaybeta.fedex.com:443/web-services
worked for me, make sure you fill out the developer key and password. Can you get their sample code to work?

 
At June 5, 2008 9:18 PM , Blogger Victor said...

It's not working for me and I don't know what the problem is. I tried different servers, different developer keys, but I still keep on getting this:

Error in processing transaction.

ERROR
prof
1000
Authentication Failed

I'm 100% sure that I filled out everything correctly.

 
At June 5, 2008 10:09 PM , Blogger Allen said...

if you want you can email me the code and i'll look at it for you. allen.battles@gmail.com

 
At June 6, 2008 11:02 PM , Blogger Amir said...

I have the same problem with both gatewaybeta and gateway urls.
did you manage to find out how to fix it?

 
At June 7, 2008 12:01 AM , Blogger Allen said...

I think their developer key and password system has an error in it. I requested a new developer key and password and my test project no longer worked. I got the same error you did. So I double checked everything and it still just didn't work. So I went looking through my emails and an old developer password they sent a couple of months ago and IT WORKED!! So here is my developer keys, feel free to use them. I am also including the newest password sent in case the old stops working (maybe they refresh their database).

Use This
Key = "8sC5QbaGrYCeB0Hj"
Password = "TGxPw7JKlF3Efn1EJMDGort5t"
AccountNumber = "510087348"
MeterNumber = "1227330"

If it stops working in a few days because they refresh their system use this
Password = "OFTy5fAp7qgLGEZqxrOuLijkr"

Let me know if this works for you.

 
At June 16, 2008 3:15 PM , Blogger Ankit said...

Thanks all for posting your valuable comments. I just wanted to add something more into this.

I was trying so hard to get the API running but had no luck for couple of hours. I tried the test keys posted by Allen and it worked fine. The test keys I got was not working for some weird reasons. Then I has to reset the account to generate a new test security code and that worked.

So if anyone facing the same problem -- obtain a new key rather than scratching your head to figure out what's wrong with code.

 
At June 20, 2008 2:35 AM , Blogger shino said...

I have been trying out the same for the last 2-3 days. I am using Java to generate the client program and I obtained the credentials from FedEx. But still, I am getting the 'Authentication Failed ' message when I tried to connect to the server. I contacted their tech.support and they confirmed that my credentials are valid and the only reason for me to get such an error is due to a wrong server URL. But I am sure I am using the URL which they provide (https://gatewaybeta.fedex.com:443/web-services) . I tried with what I found from here (https://gatewaybeta.fedex.com:443/web.services), but there is no difference in the result. Can some one help me on this??

 
At June 20, 2008 2:51 AM , Blogger mauricio said...

if nothing else, keep pushing up the ladder at fedex. That is what I had to do... they will only validate the xml for you on the first level of support. I had to go up the ladder to talk to someone about authentication. Eventually that is how I ended up finding gatewaybeta,

 

Post a Comment

<< Home