Error reading xml document in Asp
am 21.03.2007 15:30:25 von Pim75Hello,
I've written a simple asp code that has to read an xml file from an
Asp.net webservice.
The code looks like:
set soapclient = Server.CreateObject("MSSOAP.SoapClient30")
soapclient.ClientProperty("ServerHTTPRequest") = True
soapclient.mssoapinit("http://webservice/Webservice.asmx?WSD L")
soapclient.ConnectorProperty("Timeout") = 120000
strXML = soapclient.GetModellen("4", "2001", "3")
set xmlDoc=Server.CreateObject("Microsoft.XMLDOM")
xmlDoc.async=false
xmlDoc.loadXML(strXML)
When executing the code I get an error on the last instruction:
Type mismatch: 'xmlDoc.loadXML'
This is the XML returned by the webservice:
Can anyone tell me why I get this strange message Type mismatch:
'xmlDoc.loadXML' ?
When I try to load the xml from a string into the xmlDoc, there's no
problem. Only when the Xml is returned from the webservice I get the
error.
I hope someone can help me.