WEB Services technology enables heterogeneous computing environments to share data and communication to achieve information consistency. We can use
HTTP Post/get Protocol, SOAP protocol to invoke Web Services.
First, using the SOAP protocol to invoke web Services in VB6
; First use. NET to publish a simple web Services
<webmethod () > _
Public Function getString (ByVal str As String) as String
Return to "Hello World," & STR &! "
End Function
The Web services contains only one GetString method that returns a string. When we call this Web services, the SOAP message that is sent to the. asmx page is:
<?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" >
<str>string</str>
</getString>
</soap:Body>
</soap:Envelope>
The SOAP message returned is:
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.