SIGN UP MEMBER LOGIN:    
ARTICLE

Add Web Reference in Visual Studio 2010

Posted by Vijai Anand Articles | Visual Studio 2010 June 15, 2011
In this article we will be seeing how to add web reference in Visual studio 2010.
Reader Level:

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

    WebRefVs1.gif
     
  2. Click on "Advanced".

    WebRefVs2.gif
     
  3. Click on "Add Web Reference".

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

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

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

    WebRefVs6.gif
     
  7. For more information on difference between the web reference and service reference refer the following URLhttp://andrewtokeley.net/archive/2008/07/10/the-difference-between-ldquoadd-web-referencerdquo-and-ldquoadd-service-referencerdquo.aspx .
     

Login to add your contents and source code to this article
share this article :
post comment
 
Become a Sponsor
PREMIUM SPONSORS
  • ceTE software specializes in components for dynamic PDF generation and manipulation. The DynamicPDF™ product line allows you to dynamically generate PDF documents, merge PDF documents and new content to existing PDF documents from within your applications. Visit DynamicPDF here
    Get 2 Months Free of ASP.NET Hosting for Only $4.95/month! Receive FREE MS SQL and MySQL Databases Including ASP.NET 4/3.5, MVC 3.0, Silverlight 4, Windows 2008/IIS 7.0 Plus FREE IIS 7 Modules. Host UNLIMITED ASP.NET Web Sites - Click Here!
6 Months Free & No Setup Fees ASP.NET Hosting!
Become a Sponsor