If you want to send a XML document to your ASP then change as follows:
Dim xmlHTTP As MSXML.XMLHTTPRequest
Dim xmlReq As MSXML.DOMDocument
Dim xmlResp As MSXML.DOMDocument
Dim HTTPRequest As String
Set xmlReq = New MSXML.DOMDocument
'build your xmlReq here
Set xmlHTTP = New MSXML.XMLHTTPRequest
With xmlHTTP
.open "POST", HTTPRequest, False
.setRequestHeader "Content-Type", "text/xml"
.send xmlReq
Set xmlResp = xmlHTTP.responseXML
'Read the xmlResp here
End With
This is one approach using XML:
Make a reference to XML (this code is using v2) and add this code:
Dim xmlReq As MSXML.XMLHTTPRequest
Dim xmlDoc As MSXML.DOMDocument
Dim HTTPRequest As String
Set xmlReq = New MSXML.XMLHTTPRequest
With xmlReq
.open "POST", HTTPRequest, False
.setRequestHeader "Content-Type", "text/xml"
.send vbNullString
Set xmlDoc = xmlReq.responseXML
End With
0
ubsjmgAuthor Commented:
So I guess then I simply read the XML file with the ASP page.
0
Question has a verified solution.
Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.
Dim xmlHTTP As MSXML.XMLHTTPRequest
Dim xmlReq As MSXML.DOMDocument
Dim xmlResp As MSXML.DOMDocument
Dim HTTPRequest As String
Set xmlReq = New MSXML.DOMDocument
'build your xmlReq here
Set xmlHTTP = New MSXML.XMLHTTPRequest
With xmlHTTP
.open "POST", HTTPRequest, False
.setRequestHeader "Content-Type", "text/xml"
.send xmlReq
Set xmlResp = xmlHTTP.responseXML
'Read the xmlResp here
End With