Thursday, July 30, 2009

How do I write code to consume a web service in visual basic?

I have managed to find a suitable web service online through the Visual Studio but I don't know how to consume it, please help?

How do I write code to consume a web service in visual basic?
step by step (VS 2005):


1. create a new project


2.a. right-click solution name in solution explorer


2.b. or goto project menu


3. select add reference


4. type in or copy paste the url in the url text box and click go


5. once the web reference in listed, click add reference


6. declare the service as a variable so you can create an object


7. the properties, events and ,methods are now available to you. Use it as any other class
Reply:By consume do you mean use?





Visual Studio.NET makes asp.net powered sites. You have to make sure that your host has asp.net support and the write the behind code (everything in the .aspx.vb files in Visual Basic).


No comments:

Post a Comment