<%
'// Classic ASP Sample Code

'///////////////////////////////////////////////////////////////////
' START: Configuration
'///////////////////////////////////////////////////////////////////

'// To obtain a Partner ID, Password and Key, log into your ProductCart Control Panel and create a new partner.
PartnerID="" '// The Partner ID
Password="" '// The Partner Password
PartnerKey="" '// The Partner Key

'// Enter the full URL to the XML API on your ProductCart-powered store. The URL should be similar to the following: https://www.mystore.com/shop/xml/gateway.asp, where "www.mystore.com" is your domain name and "shop" is the renamed "productcart" folder.
ProductCartXMLServer="http://" '// The XML Tools Gateway Address

MethodName="" '// The name of the method
tmpBody="" '// Your XML Request Body

'///////////////////////////////////////////////////////////////////
' END: Configuration
'///////////////////////////////////////////////////////////////////

Set objXML = Server.CreateObject("MSXML2.serverXMLHTTP")
objXML.open "POST",ProductCartXMLServer, false
objXML.setRequestHeader "XML-Agent", "ProductCart XML Partner"
objXML.setRequestHeader "Content-Type", xmldocument_encoding
requestText="<?xml version='1.0' encoding='"&xmlInit_encoding&"' ?><"&MethodName&"><PartnerID>" & PartnerID & "</PartnerID><PartnerPassword>" & Password & "</PartnerPassword><PartnerKey>" & PartnerKey & "</PartnerKey>" & tmpBody & "</"&MethodName&">"
objXML.send(requestText)
set x = objXML.responseXML
response.write x.XML
response.End()
%>
