No Body
No Body

Reputation: 252

Visual Studio 2008: how to consume or call Web Service?

I used to be using visual studio 2005. Sad news is, I am using VS2008 and I need to call a web service. can someone paste same code snippets?

Why did I get a negative -1?

Upvotes: 2

Views: 9416

Answers (4)

Thorarin
Thorarin

Reputation: 48496

My VS2008 SP1 has an "Add Web Reference" option, but you can also use Add Service Reference - Advanced - Add Web Reference. Those last two are buttons on the bottom of the dialog boxes that will appear.

If you want to learn WCF, that tutorial John Saunders linked should get you started. There are tons of resources about it on the internet.

Upvotes: 3

STW
STW

Reputation: 46394

What type of web-service are you trying to consume? If it's a 2.0 style ASMX service then there's an extra click or two to get to it.

Here's some instuctions.

Upvotes: 2

Cleiton
Cleiton

Reputation: 18133

In VS2008, just add a Service Reference.

Upvotes: 0

bashmohandes
bashmohandes

Reputation: 2376

What is the difference if you were using VS 2005 before you can use the same with 2008, even if you were using 2002 it is still the same, just right click on the project and click add web reference

Upvotes: 1

Related Questions