现在的位置: 首页 > 综合 > 正文

vb调用WebService

2014年02月19日 ⁄ 综合 ⁄ 共 275字 ⁄ 字号 评论关闭

1:安装Soap Toolkit     可以网上下载

 

2:新建VB工程,添加对soap toolkit的引用(Microsoft Soap Type Library 3.0)

 

3:

Private Sub Command1_Click()

Dim client As New MSSOAPLib30.SoapClient30

Call client .MSSoapInit ("http://localhost:1234/DemoWebService/Service.asmx?WSDL")

msgbox client.HelloWorld()

Set client = Nothing

End Sub

抱歉!评论已关闭.