Welcome to WebmasterWorld Guest from 107.20.110.201

Forum Moderators: httpwebwitch

Message Too Old, No Replies

Xml Http Post to Remote Server

for UPS Shipping Costs

     

jakefree24

6:50 am on Jan 9, 2007 (gmt 0)

5+ Year Member



I got all these XML templates from UPS to post relevant shipping data from our site to UPS's so they can calculate shpping costs thenPOST it back to us so we can add it to the sale price. I understand the templates well enough, but how do you use the HTTP POST to get the XML to UPS's site? I can't find one example of this anywhere. Then I found some javascript stuff on W3Schools, using the XMLHttpRequest & Microsoft.XMLHTTP objects, but those JS objects won't work in any of my browsers. Please give me a hint. I am pretty good with FORMS and PHP and HTML but new to XML

macrost

8:00 pm on Jan 11, 2007 (gmt 0)

10+ Year Member



You'll need to use a server side script such as asp or php to send the request to their servers, then receive the answer. Once you do that, you can either parse the xml with your choice of language, or use xsl to transform the xml result set.

Take a gander through this for some pretty simple examples.

[4guysfromrolla.com...]

 

Featured Threads

Hot Threads This Week

Hot Threads This Month