I’m just in the middle turning a 2-tier app into a 3-tier app (it was planned all along, so it’s been quite easy so gar). Anyway I added the service reference to my client project and wanted to reuse shared assemblies (which was a pain in the a** in ASP.net 2.0 Webservice – let me just say I had my set of batch scripts altering the generated proxy code). But in Windows Communication Foundation it’s really easy. When you add a reference just click on the ‘Advanced’ button and choose the options.
But that’s not actually what I wanted to blog about. Even with Visual Studio 2008 and .net 3.5 (3.0) I prefer to use old style Webservices sometimes but at the same time of course I don’t want to miss out on Linq etc. Until now I kept changing the target plattform to .net 2.0 to get my ‘Add Web Reference’ context menu item and then changing it back to .net 3.5. It works, but I kept grumbling why on earth they removed the option in VS08, well it turns out they didn’t remove it, the just moved it.
In the advanced dialog at the bottom you can add a web reference as before. (But it is still counter intuitive, why is adding an old style reference a suboption after picking a service reference? I would have preferred my context menu item.)
Thanks, I was wondering about this too… why when I create a Smart Device app, the web services folder was off to the side and I could just right-click and add, but for windows apps, the option was not there…
Thanks – was having a hard time finding the Add web reference :-)
Thanks to help me find out the position
Brilliant! Took me a while to find that damn link. Thanks
Thanks, this helped me figure out what was going on when trying to have a web reference as a part of a library. You would think that this menu option would be more pronounced :|
Many thanks :D
Thanks! Almost lost it….
How do you get to the “Service Reference Settings” screen? I’m using VS2008 to build a console application and I’d like to add a web reference to the project.
thanks a lot the above solution works for me.
Thanks, I was wondering about this too… why when I create a Smart Device app, the web services folder was off to the side and I could just right-click and add, but for windows apps, the option was not there…
Where do I find this “In the advanced dialog at the bottom”?