Subject: Calling WebService from VB6 without use SOAP toolk
Posted By: sanjaykabra82 Post Date: 2/10/2004 7:22:05 AM
Hi,

I have made a WebService in .Net and my Client is a VB6. I have tried
accesing WebService by using SOAP toolkit.
But can anybody tell me whether is there any other way of accessing WebService from VB6 without using SOAP toolkit?


Sanjay Kabra
Reply By: planoie Reply Date: 2/25/2004 7:30:43 AM
A .NET web service is nothing more than XML.  Even if the web service only supports SOAP requests, you could still consume the web service without using a SOAP helper.  You could manually construct a SOAP request that gets posted to the web service.  If the web service supports standard POST or GET then the news is even better.  The best is if it supports GET because you simply need to call the web service with a standard GET call.

The MS XML 4.0 object you would use in a VB6 application supports such calls.  You just ask it to open XML from a URL.  You can construct the web service URL with all the necessary arguments on the query string.  Then it's just a matter of knowing the XML structure returned so you know what to query with xpath.  The SOAP stuff of the returned XML can be ignored.

Peter
------------------------------------------------------
Work smarter, not harder.

Go to topic 10203

Return to index page 941
Return to index page 940
Return to index page 939
Return to index page 938
Return to index page 937
Return to index page 936
Return to index page 935
Return to index page 934
Return to index page 933
Return to index page 932