P
Pim75
Hello,
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?WSDL")
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:
<?xml version="1.0" encoding="utf-8"?>
<ArrayOfTAutoModel xmlns:xsi="http://www.w3.org/2001/XMLSchema-
instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://
tempuri.org/">
<TAutoModel>
<ModelId>33</ModelId>
<Omschrijving>200</Omschrijving>
<Beginjaar>1984</Beginjaar>
</TAutoModel>
</ArrayOfTAutoModel>
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.
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?WSDL")
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:
<?xml version="1.0" encoding="utf-8"?>
<ArrayOfTAutoModel xmlns:xsi="http://www.w3.org/2001/XMLSchema-
instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://
tempuri.org/">
<TAutoModel>
<ModelId>33</ModelId>
<Omschrijving>200</Omschrijving>
<Beginjaar>1984</Beginjaar>
</TAutoModel>
</ArrayOfTAutoModel>
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.