Fedex Shipping Integration

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
zipsuchi
Forum Newbie
Posts: 2
Joined: Thu May 19, 2005 7:02 am

Fedex Shipping Integration

Post by zipsuchi »

hello,

Did any body integrated Fedex shipping calculator using PHP ? i have gone through the Fedex site they have the code for ASP.Net , java c & c++, but i did'nt found for PHP.

I have integrated UPS & USPS shipping modules, but no idea about Fedex integration.

What are the parameters required ?. How it should be send ?. Where to be send ?

I have the account number for fedex.

The parameter normally required are :

From - zip
From - Country
To - Zip
To - Country
Weight etc..

So any body have any idea for Fedex shipping integration , then please help me out..

Regrads,
Suchith
User avatar
JAM
DevNet Resident
Posts: 2101
Joined: Fri Aug 08, 2003 6:53 pm
Location: Sweden
Contact:

Post by JAM »

I'm not used to handle Fedex myself, being european (don't think we have that here). But I've dealt with TNT and DHL, that is two other companies doing the same thing.

Can you provide a direct link to the form itself (or the ASP code snippet) or is it membership only? Just by looking at the form might reveal a great deal.
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post by timvw »

if i'm not mistaken there is some "xml" api... i presume it comes down to posting/recieving some xml... and you're ready to go :)


Generating the XML is the same as constructiong a string in php.. nothing hard :) (or you could use some specialized xml functions which make stuff easier, sometimes...)

Here is a little sample of how you could post the XML to the service...
http://timvw.madoka.be/programming/php/client.txt (But you probably want to look at the CURL extension too...)

And then it's only a matter of parsing the returned data. Therefor you might want to look at the xml extension :)
zipsuchi
Forum Newbie
Posts: 2
Joined: Thu May 19, 2005 7:02 am

Thanks

Post by zipsuchi »

Hi,

Thanks, i have done the XML parsing for the UPS,But in case FEDEX it is different, we have to flow few procedure that i am not sure about...

If you find anything then please let me know ..

Thanks again
Post Reply