首页 > 开发 > 综合 > 正文

webservice系列教学(7)-如何调用webservice(&#106avascript)

2024-07-21 02:21:46
字体:
来源:转载
供稿:网友
需下载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文件,直接双击运行。
发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表