Add Web Reference in Visual Studio 2010

In this article we will be seeing how to add web reference in Visual studio 2010.

I have created a console application to access the _vti_bin/excelservice.asmx web service. To do that I need to add the web reference, here we will be seeing how to add the web reference.

To add the web reference do the following steps:

  1. Go to the console application, right click on the References folder and click on "Add Service reference".

  2. Click on "Advanced".

  3. Click on "Add Web Reference".

  4. Enter the URL of the web service (For example http://<servername>/_vti_bin/excelservice.asmx) and click on Enter.

  5. Change the web reference name if you wish and click on "Add Reference".

  6. You could see the web reference added to your solution as shown in the following.

  7. For more information on difference between the web reference and service reference refer the following URL .

Recommended Ebook

Printing in C# Made Easy

Download Now!
Similar Articles