I want to consume a file which is wsdl with VB6 , anyone can help me? Or how can I convert wsdl to proxy class ?
3 Answers
You can look at either Microsoft's SOAP Toolkit or PocketSOAP. Might be best to look at both, but don't despair over the learning curve. Both offer simple approaches for simple situations as well as complex solutions for more complex ones.

- 13,167
- 1
- 29
- 37
-
1Looks like this is where to get the SOAP toolkit now: http://download.cnet.com/SOAP-Toolkit/3000-10250_4-10730985.html – Ronnie Overby Sep 05 '12 at 14:15
-
I pulled out the old link. Microsoft is gradually removing one download after another, and it may be as much due to their "Who programs on the desktop?" worldview as anything else now. This was the excuse they gave when their ADO compatibility break in Win7 SP1 was brought to their attention. – Bob77 Sep 05 '12 at 20:45
-
Bunch of geniuses and boneheads. – Ronnie Overby Sep 06 '12 at 00:13
First, you have a problem with terminology: you do not want to consume the file. The file is a description of a web service. It is the web service that you want to consume. The WSDL gives you all the information you need to consume it.
There are methods to consume a web service in VB6. In the same way you shouldn't be using VB6, you shouldn't be using any of these methods.
You should use VB.NET to create a small COM component. This component will consume the service by using "Add Service Reference" to create proxy classes. You will be able to use modern tools and techniques to develop and debug this component.
You can then consume the COM component from VB6, just like any other COM component.

- 160,644
- 26
- 247
- 397
Basicly you can use the SOAP moniker like this
Set oProxy = GetObject("soap:wsdl=http://server/folder/service.wsdl")
oProxy.Method "Param1"
You can check out the answers to What is the best way to consume a web service from VB6?
-
-1: reading those answers shows that this doesn't work on Vista or above. – John Saunders Feb 24 '11 at 14:50
-
@John which answer would that be? [This one](http://stackoverflow.com/questions/122607/what-is-the-best-way-to-consume-a-web-service-from-vb6/122645#122645) says it works on XP or above, which would include Vista – MarkJ Feb 25 '11 at 10:29
-
http://stackoverflow.com/questions/122607/what-is-the-best-way-to-consume-a-web-service-from-vb6/156178#156178 – John Saunders Feb 25 '11 at 11:44