Home All Groups Group Topic Archive Search About

Call Web Service in VB6

Author
11 Jun 2009 9:42 AM
chris
How can I call a Web Service in VB6 ?

Author
11 Jun 2009 12:41 PM
Jason Keats
chris wrote:
> How can I call a Web Service in VB6 ?

Whose web service? Is it pre .NET, or .NET (Ver. 7,8) or WCF? Is it an
RPC, SOAP, or RESTful web service?

Whatever the answer to the above, you can use the SOAP Toolkit 3.0, or
XMLHTTP (eg, using MSXML 3.0) or even PocketSOAP.

HTH
Author
11 Jun 2009 4:47 PM
Dick Grier
Hi,

You and use the SOAP toolkit 3.  See:
http://www.microsoft.com/downloads/details.aspx?FamilyId=C943C0DD-CEEC-4088-9753-86F052EC8450&displaylang=en.

Note, this is no longer supported, though it still works.

I have to say, that the only "good way" to do this (IMO), is to use Visual
Basic .NET, and to write all of the webservice code using conventional .NET
routines (examples are plentiful), then wrap this code using COM, either a
dll or ActiveX control (see the Interop Toolkit for examples that actual
illustrate using a webservice in VB6 this way).  Again, IMO, you will spend
a lot less time doing the development, if you use VB .NET for the webservice
interface.

Dick

--
Richard Grier, MVP
Hard & Software
Author of Visual Basic Programmer's Guide to Serial Communications, Fourth
Edition,
ISBN 1-890422-28-2 (391 pages, includes CD-ROM). July 2004, Revised March
2006.
See www.hardandsoftware.net for details and contact information.