webservice系列教学(9)-如何调用webservice(vb6.0,vbscript)
来源:互联网 发布:adarank ndcg优化 编辑:程序博客网 时间:2024/05/19 04:56
<script type="text/javascript"><!--google_ad_client = "pub-2947489232296736";/* 728x15, 创建于 08-4-23MSDN */google_ad_slot = "3624277373";google_ad_width = 728;google_ad_height = 15;//--></script><script type="text/javascript"src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
需下载msSoapToolkit20.exe
添加引用:Microsoft Soap Type Library
位置:”C:/Program Files/Common Files/MSSoap/Binaries/ MSSOAP1.dll”
调用方法:
Dim cc As New MSSOAPLib.SoapClient
例程:
新建工程标准EXE添加3个textbox控件,text1,text2,text3添加一个button控件Command1
代码如下:
Option Explicit
Dim cc As New MSSOAPLib.SoapClient
Private Sub Command1_Click()
cc.mssoapinit "http://192.168.0.4/yundan/Service1.asmx?WSDL"
Me.Text3.Text = cc.test(CInt(Text1.Text), CInt(Text2.Text))
End Sub
4.9使用vbscript调用
需下载msSoapToolkit20.exe
引用:MSSOAP.SoapClient
例程:
Option Explicit
Const WSDL_URL = "http://192.168.0.4/yundan/service1.wsdl"
WScript.echo "Connecting: " & WSDL_URL
Dim Calc
Set Calc = CreateObject("MSSOAP.SoapClient")
Calc.mssoapinit WSDL_URL
Dim Answer
Answer = Calc.test(14,28)
WScript.Echo "14+28=" & Answer
将其存成domo.vbs文件,直接双击运行。
系列教学(9)-如何调用webservice(vb6.0,vbscript)';return true">
<script type="text/javascript"><!--google_ad_client = "pub-2947489232296736";/* 728x15, 创建于 08-4-23MSDN */google_ad_slot = "3624277373";google_ad_width = 728;google_ad_height = 15;//--></script><script type="text/javascript"src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
<script type="text/javascript"><!--google_ad_client = "pub-2947489232296736";/* 160x600, 创建于 08-4-23MSDN */google_ad_slot = "4367022601";google_ad_width = 160;google_ad_height = 600;//--></script><script type="text/javascript"src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
4.8使用vb6.0调用需下载msSoapToolkit20.exe
添加引用:Microsoft Soap Type Library
位置:”C:/Program Files/Common Files/MSSoap/Binaries/ MSSOAP1.dll”
调用方法:
Dim cc As New MSSOAPLib.SoapClient
例程:
新建工程标准EXE添加3个textbox控件,text1,text2,text3添加一个button控件Command1
代码如下:
Option Explicit
Dim cc As New MSSOAPLib.SoapClient
Private Sub Command1_Click()
cc.mssoapinit "http://192.168.0.4/yundan/Service1.asmx?WSDL"
Me.Text3.Text = cc.test(CInt(Text1.Text), CInt(Text2.Text))
End Sub
4.9使用vbscript调用
需下载msSoapToolkit20.exe
引用:MSSOAP.SoapClient
例程:
Option Explicit
Const WSDL_URL = "http://192.168.0.4/yundan/service1.wsdl"
WScript.echo "Connecting: " & WSDL_URL
Dim Calc
Set Calc = CreateObject("MSSOAP.SoapClient")
Calc.mssoapinit WSDL_URL
Dim Answer
Answer = Calc.test(14,28)
WScript.Echo "14+28=" & Answer
将其存成domo.vbs文件,直接双击运行。
<script type="text/javascript"><!--google_ad_client = "pub-2947489232296736";/* 728x15, 创建于 08-4-23MSDN */google_ad_slot = "3624277373";google_ad_width = 728;google_ad_height = 15;//--></script><script type="text/javascript"src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
<script type="text/javascript"><!--google_ad_client = "pub-2947489232296736";/* 160x600, 创建于 08-4-23MSDN */google_ad_slot = "4367022601";google_ad_width = 160;google_ad_height = 600;//--></script><script type="text/javascript"src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
- webservice系列教学(9)-如何调用webservice(vb6.0,vbscript)
- webservice系列教学(5)-如何调用webservice(Jscript,vbscript)
- webservice系列教学(4)-如何调用webservice(pb,java)
- webservice系列教学(8)-如何调用webservice(vb.net)
- webservice系列教学(3)-如何调用webservice
- webservice系列教学(10)-如何调用webservice(vc1)
- webservice系列教学(14)-如何调用webservice(vc5)
- webservice系列教学(13)-如何调用webservice(vc4)
- webservice系列教学(11)-如何调用webservice(vc2)
- webservice系列教学(12)-如何调用webservice(vc3)
- Web服务系列教学-如何调用WebService(4)
- Web服务系列教学-如何调用WebService(5)
- VB6.0调用WEBService问题
- VB6.0调用WEBService问题
- webservice系列教学(2)
- webservice系列教学(14)-如何调用webservice(vc5)-.NET教程,Web Service开发
- VB6调用WebService、WCF
- webservice系列教学
- Questioning C# (二)
- [Tip]如何在SQL*PLUS中插入含有'&'的字符串?
- Odbc连SQL Server数据库的几种方法
- Visual Basic 6.0 控件和 .NET 控件的区别(续)
- UNIX和WINDOWS2000上的ORACLE的差异 PartII
- webservice系列教学(9)-如何调用webservice(vb6.0,vbscript)
- InnoDB 中文参考手册 --- 犬犬(心帆)翻译
- Add data to the Access database using ADO
- InnoDB 中文参考手册 --- 4 建立 InnoDB 表
- 15秒:为ASP.NET应用缓存Oracle数据
- C#书写规范
- DB2 V71 OLAP功能使用介绍
- 在ASP.NET中将数据直接输出成Excel内容
- UNIX 和 WINDOWS2000 上的 ORACLE 的差异