Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Having Trouble with XML

Status
Not open for further replies.

khurram

IS-IT--Management
Jan 10, 2001
95
CA
I want to integrate our website with our courier company using an API. The courier has an XML interface that they've provided but the examples given in the books I have don't seem to work out to well (they seem vague but its probably just me).

Given the following piece of code, how would I integrate the following into a CF page assuming that the ITEMSPRICE and TURNAROUNDTIME are dynamic?

Also, I am going to need to use CFHTTP to connect to the webserver. How do I incorporate a CFHTTPPARAM into this?

Thanks in advance.

<EPARCEL>-
<LANGUAGE>EN</LANGUAGE>-
<RATESANDSERVICESREQUEST>-
<MERCHANTCPCID>12345</MERCHANTCPCID>-
<FROMPOSTALCODE>M1M1Z1</FROMPOSTALCODE>-
<TURNAROUNDTIME>96</TURNAROUNDTIME>-
<ITEMSPRICE>50.00</ITEMSPRICE>
</RATESANDSERVICESREQUEST></EPARCEL>
 
?? i don't understand your problem .... xml files are just like normal text files, but they are easier to parse ...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top