M
Martin Hansen
I have this code:
----------------------------
function funcLogin(orderType)
username = request.Form("username")
password = request.Form("password")
myxml = "<?xml version='1.0' ?>"
myxml = myxml & "<function>"
myxml = myxml & "<getlogin>"
myxml = myxml & "<username>" & username & "</username>"
myxml = myxml & "<password>" & password & "</password>"
myxml = myxml & "</getlogin>"
myxml = myxml & "</function>"
funcLogin = myxml
end function
set objXMLHttp = server.createobject("MSXML2.ServerXMLHTTP.3.0")
set objDOMDocument = server.createobject("MSXML2.DOMDocument.3.0")
dim requestXML
requestXML = funcLogin(OrderType)
objXMLHttp.Open "POST", "http://192.168.2.54/receive.asp", False
objDOMDocument.loadXML requestXML
objXMLHttp.Send objDomdocument
set objDOMDocumentResponse = server.createobject("MSXML2.DOMDocument.3.0")
objDOMDocumentResponse.loadXML objXMLHttp.responseText
-----------------
I need to write it, so it works in ASP.NET 3.5 (VB).
Someone who has an idea of what i'm doing wrong?
Best regard
Martin Hansen
Web Manager - Denmark
----------------------------
function funcLogin(orderType)
username = request.Form("username")
password = request.Form("password")
myxml = "<?xml version='1.0' ?>"
myxml = myxml & "<function>"
myxml = myxml & "<getlogin>"
myxml = myxml & "<username>" & username & "</username>"
myxml = myxml & "<password>" & password & "</password>"
myxml = myxml & "</getlogin>"
myxml = myxml & "</function>"
funcLogin = myxml
end function
set objXMLHttp = server.createobject("MSXML2.ServerXMLHTTP.3.0")
set objDOMDocument = server.createobject("MSXML2.DOMDocument.3.0")
dim requestXML
requestXML = funcLogin(OrderType)
objXMLHttp.Open "POST", "http://192.168.2.54/receive.asp", False
objDOMDocument.loadXML requestXML
objXMLHttp.Send objDomdocument
set objDOMDocumentResponse = server.createobject("MSXML2.DOMDocument.3.0")
objDOMDocumentResponse.loadXML objXMLHttp.responseText
-----------------
I need to write it, so it works in ASP.NET 3.5 (VB).
Someone who has an idea of what i'm doing wrong?
Best regard
Martin Hansen
Web Manager - Denmark