Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
FedEx xml or not ?
Message
De
18/03/2003 13:57:53
 
 
À
17/03/2003 19:40:41
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00760667
Message ID:
00767186
Vues:
24
Michel,

where is the link for the registration, the only way I can get to the API is through their registration where I have to enter a creditcard number.

FedEx Return ManagerSM API Technical is the section I am looking at
there you will find the link for registration but then as I register then it asks me for a creditcard number

thanks

mark oliva



>>thanks Michel I will let you know of any other findings on my side
>
>Here's the full approach to have it connected to Fedex XML server directly and get what you want. No subscription needed, it's free and is XML standard. It's not a Web Service but soon, as I understood, it will be released.
>
>For now, go to their Web site. Register for that XML API request. Once that done, within a few workable days, you'll get a confirmation that they have set up your account to be able to XML to their server. Then, once that ready, you simply use an approach like this:
>
>
>LOCAL lcUrl,loXML,lcXML,lcFile,lcXMLResponse
>lcUrl='https://...'
>lcFile='d:\Register.xml'
>lcXML=FILETOSTR(lcFile)
>loXML=CREATEOBJECT('Microsoft.XMLHTTP')
>loXML.Open('Post',lcUrl,.F.)
>loXML.SetRequestHeader('Referer','Fournier Transformation')
>loXML.SetRequestHeader('Host',lcUrl2)
>loXML.SetRequestHeader('Accept','image.gif, image.jpeg, image/pjpeg, text/plain, text/html, */*')
>loXML.SetRequestHeader('Content-Type','image/gif')
>loXML.SetRequestHeader('Content-Length',ALLTRIM(STR(LEN(lcXML))))
>loXML.Send(lcXML)
>lcXMLResponse=loXML.ResponseBody
>STRTOFILE(lcXMLResponse,'d:\Response.xml')
>
>
>The lcUrl is hidden as Fedex will give it to you in the confirmation email. So, is lcURL2. You may adjust Referer to be your company.
>
>Basically, the first request is to Register. You send an XML string which will register your account and you will receive a meter number. That meter number, in most requests, will have to be sent. For tracking a shipment, you don't have to pass it.
>
>Next, you are ready to send any XML string as you wish. Once you will get your confirmation email, you will get XML documentations which will tell you how to build your XML string. What is not included is the VFP code to send the XML string. The above code can be used. The only think you'll have to adjust is the lcUrl and lcUrl2 variables. Then, you only have to adjust the lcFile variable to point to the XML string you wish to send. When sending a request to get a tracking shipment, the result is impressive. Within one XML string, you get it all. All basic info about the shipment so as all child records of all steps during the process of the shipment.
>
>So, if you wish to go to a 3rd party server with either a pay basis or not, you may let that idea go as you can directly connect to Fedex XML server directly.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform