Basic code for accessing a webMethods Webservice from a VB 6 Application


Does anyone has sample code to access a WebMethods WebService from a VB6 Application?

I have generated a .wsdl file. Now i want to call this WSDL from a VB application. i have some inputs to my WSDl and my output is a XML file.

Any suggestion welcome.

Thanks in Advance.


The easiest way is to add a Web Reference from Visual Studio. Just provide the URL of your WSDL for your web service. Visual Studio imports this and creates the corresponding classes for interacting with the service. You just need to create code that populates the data and executes the operation.