需下载msSoapToolkit20.exe
引用:MSSOAP.SoapClient
例程:
var WSDL_URL = "http://192.168.0.4/yundan/service1.wsdl"
WScript.echo("Connecting: " + WSDL_URL)
var Calc = WScript.CreateObject("MSSOAP.SoapClient")
Calc.mssoapinit(WSDL_URL, "", "", "")
var Answer
Answer = Calc.test(14,28)
WScript.Echo("14+28=" + Answer)
将其存成domo.js文件,直接双击运行。
webservice系列教学(7)-如何调用webservice(javascript)
80酷酷网 80kuku.com