在asp中使用vbscript调用webservices

2018-09-06 11:23

阅读:550

  需下载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

Dim res
res = soapclient.test(23, 34)
%>
<h1>webservie演示</h1>
<B>Result:</B> <%=res%><P><P>
</BODY>
</HTML>


评论


亲,登录后才可以留言!