我爱Aspx >> Asp.Net >> 在VB6或ASP中调用webservice在VB6或ASP中调用webservice
ASP中调用webservice
Web Services技术使异种计算环境之间可以共享数据和通信,达到信息的一致性。我们可以利用
HTTP POST/GET协议、SOAP协议来调用Web Services。
一、 利用SOAP协议在VB6中调用Web Services
; 首先利用.net发布一个简单的Web Services
<WebMethod()> _
Public Function getString(ByVal str As String) As String
Return "Hello World, " & str & "!"
End Function
该Web Services只包含一个getString方法,用于返回一个字符串。当我们调用这个Web Services时,发送给.asmx页面的SOAP消息为:
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance
xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://
schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<getString xmlns="http://tempuri.org/TestWebService/Service1">
Ҷƪл˵?
Programming MS Office 2000 Web..[05-28]
在WinForm中使用Web Services 来..[05-28]
用SVG技术实现基于Web的GIS[05-28]
web下水晶报表的使用![05-28]
使用Flex结合Webservice完成域名..[05-28]
使用WINDOWS脚本访问WEB SERVICE..[05-28]
在WebService中利用SoapExceptio..[05-28]
vs.net中web services入门[05-28]
动态引用WebService,建立WebServ..[05-28]
web下打印的办法[05-28]
Programming MS Office 2000 Web..[05-28]
在WinForm中使用Web Services 来..[05-28]
用SVG技术实现基于Web的GIS[05-28]
web下水晶报表的使用![05-28]
使用Flex结合Webservice完成域名..[05-28]
使用WINDOWS脚本访问WEB SERVICE..[05-28]
在WebService中利用SoapExceptio..[05-28]
vs.net中web services入门[05-28]
动态引用WebService,建立WebServ..[05-28]
web下打印的办法[05-28]