Our company are using Classic ASP for everything hence I will need to use it for implementing the API.
I was trying to call RequestAccess, which is the first step of the whole game :(, and not managed to make a successful call. Code as followed:
dim localID
localID = XXXXXXXX
set ca = new channeladvisor
xml = ca.RequestAccess(localID)
set xmlRequest = Server.CreateObject("MSXML2.ServerXMLHTTP")
xmlRequest.setRequestHeader "Content-Type", "text/xml"
xmlRequest.setRequestHeader "Charset", "UTF-8"
xmlRequest.setRequestHeader "Content-Length", len(xml)
xmlRequest.send xmlDoc
response.write xmlRequest.status & " "
set result = xmlRequest.responseXML
Set xmlDOM = Server.CreateObject("MSXML2.DOMDocument")
xmlDOM.async = False
xmlDOM.Load result
xpath = "//soap:Envelope"
set xml_response = xmlDOM.selectSingleNode(xpath)
if xml_response is nothing then
response.write "xml_response has no value"
else
response.write xml_response.text
end if
Thanks in advanced.