最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
在VB6或ASP中调用webservice
时间:2022-07-02 11:22:18 编辑:袖梨 来源:一聚教程网
VB6或ASP中调用webservice
Web Services技术使异种计算环境之间可以共享数据和通信,达到信息的一致性。我们可以利用
HTTP POST/GET协议、SOAP协议来调用Web Services。
一、 利用SOAP协议在VB6中调用Web Services
; 首先利用.net发布一个简单的Web Services
_
Public Function getString(ByVal str As String) As String
Return "Hello World, " & str & "!"
End Function
该Web Services只包含一个getString方法,用于返回一个字符串。当我们调用这个Web Services时,发送给.asmx页面的SOAP消息为:
Schema-instance
xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://
schemas.xmlsoap.org/soap/envelope/">
string
而返回的SOAP消息为:
xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="
http://schemas.xmlsoap.org/soap/envelope/">
string
Web Services技术使异种计算环境之间可以共享数据和通信,达到信息的一致性。我们可以利用
HTTP POST/GET协议、SOAP协议来调用Web Services。
一、 利用SOAP协议在VB6中调用Web Services
; 首先利用.net发布一个简单的Web Services
Public Function getString(ByVal str As String) As String
Return "Hello World, " & str & "!"
End Function
该Web Services只包含一个getString方法,用于返回一个字符串。当我们调用这个Web Services时,发送给.asmx页面的SOAP消息为:
xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://
schemas.xmlsoap.org/soap/envelope/">
而返回的SOAP消息为:
http://schemas.xmlsoap.org/soap/envelope/">
相关文章
- Web3遊戲《Seraph》代幣閃崩60%!官方緊急宣布回購$SERAPH 07-12
- 幻兽帕鲁滑水蛇怎么获得 帕鲁滑水蛇获取方法 07-12
- 原神玛薇卡恰斯卡队怎么配队 玛薇卡配队大全攻略 07-12
- 光遇水之灵怎么找-水之灵位置攻略 07-12
- 剑星拉毗服装如何获取 拉毗服装获取方式分享 07-12
- 晨会分享朋友圈文案 07-12