Welcome to WebmasterWorld Guest from

Forum Moderators: httpwebwitch

Message Too Old, No Replies

Xml Http Post to Remote Server

for UPS Shipping Costs

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

New User

5+ Year Member

joined:Jan 9, 2007
votes: 0

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
8:00 pm on Jan 11, 2007 (gmt 0)

Preferred Member

10+ Year Member

joined:Feb 27, 2003
votes: 0

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.