M
Michael Christensen
Hi
How do I send an input-param to my web service with
MSXML2.ServerXMLHTTP?
Can this be done without the soap-toolkit?
Can't find anything about it - looking forward getting some help
-------------
Function GetLatest()
Dim url, xmlhttp, XMLDOM, XMLNode
url = "http://www.mssoapinterop.org/asmx/simple.asmx/echoString"
Set xmlhttp = Server.CreateObject("MSXML2.ServerXMLHTTP")
Call xmlhttp.Open("POST", url,False)
Call xmlhttp.send
'Parse result
Set XMLDOM = Server.CreateObject("Microsoft.XMLDOM")
XMLDOM.Load(xmlhttp.responseBody)
Set XMLNode = XMLDOM.SelectSingleNode("//string")
If Not XMLNode Is Nothing Then
GetLatest = XMLNode.text
End If
End Function
How do I send an input-param to my web service with
MSXML2.ServerXMLHTTP?
Can this be done without the soap-toolkit?
Can't find anything about it - looking forward getting some help
-------------
Function GetLatest()
Dim url, xmlhttp, XMLDOM, XMLNode
url = "http://www.mssoapinterop.org/asmx/simple.asmx/echoString"
Set xmlhttp = Server.CreateObject("MSXML2.ServerXMLHTTP")
Call xmlhttp.Open("POST", url,False)
Call xmlhttp.send
'Parse result
Set XMLDOM = Server.CreateObject("Microsoft.XMLDOM")
XMLDOM.Load(xmlhttp.responseBody)
Set XMLNode = XMLDOM.SelectSingleNode("//string")
If Not XMLNode Is Nothing Then
GetLatest = XMLNode.text
End If
End Function