H
Haffe
I'm trying to get something back from a server. The communication
between is XML.
But I can't make it work.
My asp.net code (doesn't work!):
Dim requestText, serverResponseText As String
Dim xmlServerHttp As New MSXML2.XMLHTTPClass
// makes the xml:
requestText = functionToXML(methodName, paramList)
TextBox1.Text = requestText
xmlServerHttp.open("POST",
"https://secure1.revilution.dk/api/index.php", False)
xmlServerHttp.send(requestText)
The xml is valid.
it works fine with asp but not asp.net...
Code in asp (works fine):
Set objXML = Server.CreateObject("MSXML2.ServerXMLHTTP")
requestText = functionToXML(methodName,paramList)
' Call the remote machine the request
objXML.open "POST",
"https://secure1.revilution.dk/api/index.php", false
' This is necessary for some implementations (ZOPE).
objXML.setRequestHeader "Content-type", "text/xml"
objXML.setRequestHeader "Content-lenght", len(requestText)
objXML.setRequestHeader "Connection", "close"
objXML.send(requestText)
serverResponseText = objXML.responseText
Haffe
between is XML.
But I can't make it work.
My asp.net code (doesn't work!):
Dim requestText, serverResponseText As String
Dim xmlServerHttp As New MSXML2.XMLHTTPClass
// makes the xml:
requestText = functionToXML(methodName, paramList)
TextBox1.Text = requestText
xmlServerHttp.open("POST",
"https://secure1.revilution.dk/api/index.php", False)
xmlServerHttp.send(requestText)
The xml is valid.
it works fine with asp but not asp.net...
Code in asp (works fine):
Set objXML = Server.CreateObject("MSXML2.ServerXMLHTTP")
requestText = functionToXML(methodName,paramList)
' Call the remote machine the request
objXML.open "POST",
"https://secure1.revilution.dk/api/index.php", false
' This is necessary for some implementations (ZOPE).
objXML.setRequestHeader "Content-type", "text/xml"
objXML.setRequestHeader "Content-lenght", len(requestText)
objXML.setRequestHeader "Connection", "close"
objXML.send(requestText)
serverResponseText = objXML.responseText
Haffe