Generate XML document through ASP
Posted on 2004-03-24
I am currently developing a site in ASP, with a shopping cart concept. Before checkout, the users enter the quantity and address details. Based on this, we have to send info to UPS in XML format (an example is given in the documentation they provided). UPS will then process this info and return us the rate info (again in XML - example is given)
I am a newbie to XML. I realise that my ASP page has to generate an XML page, send it to the server and upon receipt of data, it has to extract rate information and store it in the database. Then the control proceeds to the next asp page which takes user credit card info for charging.
I know exactly what data to retreive and what data to send but don't know how to do either
1 . I would greatly appreciate it if someone gave me the ASP code for generating XML document, send it to the server and then extract the info I need.
2. Would all this happen on one ASP page with subsequent calls to the server, or would I have to use Response.Redirect method (after sending info to UPS) to process their response?
The points are high - this is urgent ;)