当前位置:主页 > 脚本语言 > VBS >

vbscript 调用WebService实现代码

时间:2022-08-14 09:30:27 | 栏目:VBS | 点击:

复制代码 代码如下:

'获取已初始化Soap对象
Public Function GetSoapClient(sURL)

Dim oSoap
Set oSoap = CreateObject("MSSOAP.SoapClient")
oSoap.mssoapinit sURL
Set GetSoapClient = oSoap
End Function

'用户绑定对应序列号
sub BindCodeNumber()

Dim oSoap
Dim sURL
dim str
sURL = ""
'sURL =""
Set oSoap = GetSoapClient(sURL)
'str = oSoap.HelloWorld()
Set oSoap = Nothing
'msgbox str

End sub
BindCodeNumber

您可能感兴趣的文章:

相关文章