Calling a Web Service using VB6 with SOAP 3.0
(Page 1 of 4 )
This article shows you how to create a client that calls a web service from Visual Basic 6 using SOAP 3.0. If you are still using VB 6.0 or C++ and don't plan to move into VB.NET, you will find this method very useful.
Introduction
In an earlier article the method of calling a web service from a client created using Microsoft Visual Studio 2003 IDE was described. The IDE offers an excellent method to get a reference to the necessary proxy by way of the WSDL utility. This is carried out by adding a web reference to the client application.
This article shows how you may create a client that calls the web service from Visual Basic 6 using Soap 3.0. By providing Soap 3.0, Microsoft provides VB programmers with the ability to tap web services. This is most useful to those who are still using VB 6.0 or C++ and are not contemplating a move into VB.NET.
This tutorial assumes that web services have been created using any of the programming languages and that a wsdl web reference is available. In particular it creates clients for the web services created using the ColdFusion service with just one method, and another web service using VB.NET with two methods. Examples of early binding and late binding are also shown for the web service created with ColdFusion.
SOAP basicsSOAP, which stands for Simple Object Access Protocol, is a vendor- and platform-agnostic protocol which uses XML and HTTP (SOAP Specification 1.0) to access resources (servers, services and objects) through firewalls in a distributed environment. Later SOAP specifications do not mandate the use of HTTP, and other protocols such as SMTP and FTP can also be used. Please review SOAP and other related protocols at the W3C website and numerous other links at that site.
Next: The web services used in the tutorial >>
More Visual Basic.NET Articles
More By Jayaram Krishnaswamy
|
| · | | | · | | | · | | | · | | | · | | | · | | | · | | | · | | | · | | | · | | | · | | | · | | | · | | | · | | | · | | | · | | | · | | | · | | | · | | | | |
|