首页 > 编程 > VBScript > 正文

vbscript 调用WebService实现代码

2020-07-26 11:52:57
字体:
来源:转载
供稿:网友
复制代码 代码如下:

'获取已初始化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
发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表