Soapclient的经典asp代码
dim soapClient ,XMLReader, xmlDoc
Set soapClient = Server.CreateObject("MSSOAP.SoapClient30")
soapClient.ClientProperty("ServerHTTPRequest") = True
Call soapClient.MSSoapInit("http://www.jiemai.com/services/JieMaiSlService?wsdl")
soapClient.ConnectorProperty("Timeout") = 90000 '90 seconds
soapClient.ConnectorProperty("ConnectTimeout") = 90000 '90 seconds
Set result = soapClient.getAllCategories("1056aed3-eee8-409a-8be0-6dc65962686e", "1.0")
'REsponse.write Result(0)
Response.Write( TypeName( Result ) & "<br/>" & vbCrLf )
我正在使用上面的代码,但我得到'IXMLDOMSelection'只有响应可以有人请帮助我
答案 0 :(得分:2)
正如您所看到的,您有一个 IXMLDOMSelection 对象。它是一个可迭代的集合,所以如果你只想要选择上下文,你可以迭代或使用Response.Write(result.context.xml)
,这将返回树的xml。