B
Bingo
Hi group !
I am trying to write an ASP page that would forward an XML request
to a remote server, and then write the response to the client (a
kind of proxy, if you like).
I am sending the query to this ASP via a VBA (access2k) procedure,
which basically looks like :
Dim oXMLHTTP As New MSXML2.XMLHTTP40
Const strURL As String = "http://myserver/myasppage.asp"
Dim strResponse As String
oXMLHTTP.Open "POST", strURL, False
oXMLHTTP.Send "<?xml version=""1.0"" encoding
=""iso-8859-1""?><xmlxmlxml/>"
strResponse = oXMLHTTP.responseXML.xml
Now, the problem I have is to retrieve this XML !
In the ASP, I tried :
strQuery = Request.BinaryRead(Request.TotalBytes)
This kind of works but I retrieve an array of bytes, and this
really not easy to convert to xml to be sent again.
I tried with a form, but it didn't work at all :
oXMLHTTP.SetRequestHeader "Content-Type",
"application/x-www-form-urlencoded"
oXMLHTTP.Send "queryxml=" & strQueryXML
I did not retrieve anything in the ASP with
Request.Form("queryxml")...
Does anyone know of an easy solution for this ?
Thanks a lot !
I am trying to write an ASP page that would forward an XML request
to a remote server, and then write the response to the client (a
kind of proxy, if you like).
I am sending the query to this ASP via a VBA (access2k) procedure,
which basically looks like :
Dim oXMLHTTP As New MSXML2.XMLHTTP40
Const strURL As String = "http://myserver/myasppage.asp"
Dim strResponse As String
oXMLHTTP.Open "POST", strURL, False
oXMLHTTP.Send "<?xml version=""1.0"" encoding
=""iso-8859-1""?><xmlxmlxml/>"
strResponse = oXMLHTTP.responseXML.xml
Now, the problem I have is to retrieve this XML !
In the ASP, I tried :
strQuery = Request.BinaryRead(Request.TotalBytes)
This kind of works but I retrieve an array of bytes, and this
really not easy to convert to xml to be sent again.
I tried with a form, but it didn't work at all :
oXMLHTTP.SetRequestHeader "Content-Type",
"application/x-www-form-urlencoded"
oXMLHTTP.Send "queryxml=" & strQueryXML
I did not retrieve anything in the ASP with
Request.Form("queryxml")...
Does anyone know of an easy solution for this ?
Thanks a lot !