Wednesday, March 17, 2010

Consuming a Web Reference in a class library (C#/.NET) – VS 2008

when you tried to add a web reference to a Class Library in VS 2008, by default it will add a Service Reference (WCF). I have seen this option only in VS 2008 and not in VS 2005. If you need to add a Web Reference then at the time of adding a Service Reference, click the Advanced button as depicted below :

image

After that click the Add Web Reference as below:

image

after that you will be prompted with the usual add web reference dialog.

image

0 comments: