p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   .NET Web Services (http://p2p.wrox.com/forumdisplay.php?f=102)
-   -   Calling WebService from VB6 without use SOAP toolk (http://p2p.wrox.com/showthread.php?t=9185)

sanjaykabra82 February 10th, 2004 08:22 AM

Calling WebService from VB6 without use SOAP toolk

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

planoie February 25th, 2004 08:30 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.

Work smarter, not harder.

All times are GMT -4. The time now is 05:29 PM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.