Abstract: How to access Web services from Visual Basic 6.0 and Visual Basic. NET, and how to convert existing SOAP applications to. NET platforms.
Target
Learn about the SOAP tool in Microsoft & reg; Visual Studio & reg;. NET.
Review using SOAP and Visual Basic & reg; 6.0 to access COM/COM + Components
Access Web services from Visual Basic. NET
Migrate a SOAP Toolkit application to a Web Service
Prerequisites
What is Web Service
Proficient in Visual Basic 6.0 and SOAP, and know how to create ActiveX & reg; DLL Projects
Familiar with basic knowledge about Visual Studio. NET
Web Services, SOAP, and your tools
Web Services provide the ability to access the Internet, that is, to call Web Services and obtain returned results. The new feature of Web services is that you can now connect to services on the world's largest Internet. However, as a Visual Basic programmer, Web services handle tedious Internet transactions for you.
In this article, you will learn how to use Visual Studio. NET access to Web services, review the process of using Visual Basic 6.0 and SOAP Toolkit 2.0 to create Web Services, and learn how to convert existing SOAP Toolkit applications in.. NET Framework.
The Web Service used in this article has a very simple function createCustomer. It accepts the customer's name and returns the customer's identifier. However, we will not discuss the functions of Web services here, so that you can focus on how to create and access Web services using Visual Basic 6.0 or Visual Basic. NET.
Visual Basic and SOAP
Users send and receive SOAP documents to communicate with Web Services. In Visual Basic 6.0, there are two ways to create a SOAP document:
Concatenate a string combination document
Use SoapClient in SOAP Toolkit 2.0
SoapClient not only creates a SOAP document to communicate with the Web service, but also sends the document to the Web Service for processing.
On the transmitted Web server, a SOAP listener is required to capture and process the documents sent by the client. SOAP Toolkit 2.0 includes SoapServer, which can be used in listening applications to process SOAP documents. A listener is an application created separately. It is independent of components that implement Web services.