I was trying to add a web reference in visual studio 2010 this week and it took me a while to find out where Microsoft had hidden the functionality.
Microsoft always have to hide/rename things whenever they do an upgrade.
Instead of web references all I could find was the Add Service, which means going through the hell of trying to set up a WCF connection. I’m sure WCF is really deep down very good but every time I have had to use it, I have always had connection/setup issues.
Anyway way back to Web References, which if you are using some legacy code then you might well need to use. I tried adding a the Web Reference url with a ?wsdl on the end but this didn’t return me a normal web reference and it didn’t work in the same way, which basically meant the old code I had wouldn’t work. So I had to find out how to add a Web Reference.
So go the references folder in Visual studio 2010,
right click and choose Add Service Reference
press the Advanced Button at the bottom left
Now you can finally add in a good old fashioned Web Reference by bashing on the Add Web Reference Button
I borrowed the image from this blog, who also had the same issue.