views:

1184

answers:

4

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?

+1  A: 

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

bashmohandes
their is no, "Add Web Reference" buddy
No Body
A: 

In VS2008, just add a Service Reference.

Cleiton
yup i did that on "Add Service Reference", the problem now is how to use the Service Reference in codes?got only the following ServiceSoap,ServiceSoapChannel,ServiceSoapClient.
No Body
Use the ServiceSoapClient !
marc_s
+1  A: 

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.

STW
No, you can still use a Service Reference with a .ASMX service.
John Saunders
pictures link are missing
No Body
but manage to work it up.
No Body
+3  A: 

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.

Thorarin