欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  IT编程

在asp中使用vbscript调用webservices

程序员文章站 2022-07-01 18:38:14
需下载mssoaptoolkit20.exe引用:mssoap.soapclient    例程:<%@ language = vbscript %><...

需下载mssoaptoolkit20.exe
引用:mssoap.soapclient
    例程:
<%@ language = vbscript %>
<html>
<head>
<title>webservie演示</title>
</head>
<body>
<%
dim soapclient
const wsdl_url = ""
    set soapclient = server.createobject("mssoap.soapclient")
    soapclient.clientproperty("serverhttprequest") = true
    soapclient.mssoapinit
http://192.168.0.4:8080/yundan/service1.wsdl","service1","service1soap",""
dim res
        res = soapclient.test(23, 34)
%>
<h1>webservie演示</h1>
<b>result:</b> <%=res%><p><p>
</body>
</html>