vb调用WebService

前端之家收集整理的这篇文章主要介绍了vb调用WebService前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

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
原文链接:https://www.f2er.com/vb/259043.html

猜你在找的VB相关文章