Dear PERL community,
I want to http-post a xml file to an asp script, it is supposed to return
xml formatted information to me. So far i couldn't establish this. For all i
know i can only send 'variable = value' kind of data to http post and http
get scripts. Is there a standard way for sending xml to scripts?
I've seen an example written in vb script for the concerned xml service,
it's main routine was:
Dim requestDOM, responseDOM, xmlHTTP
Set requestDOM = CreateObject("MSXML2.DOMDocument")
' responseDOM is later set to an automatically generated instance
' of MSXML2.DOMDocument
Set xmlHTTP = CreateObject("MSXML2.XMLHTTP")
' try to load the request message
If requestDOM.load(REQUEST_FILE) Then
' Open HTTP connection and send request
xmlHTTP.open "POST", REQUEST_SERVER, False
xmlHTTP.send requestDOM
' You should check for errors here
Set responseDOM = xmlHTTP.responseXML
' Save the quote data
If SaveQuote(responseDOM) Then
LogEvent 0, "Data successfully received"
Else
LogEvent 1, "Could not retrieve quote data"
End If
Else
LogEvent 1, "Could not load request XML"
End If
End Sub
I don't understand this script and it's the almost the only documentation
available for the xml service. I am concerned about the use of some
MSXML2.DOMDocument, which looks a lot like microsoft only.... please help!
it is freaking me out!
thanks in advance,
Bas ;-)