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?
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?
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
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.
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.