Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to Add web service reference into class library project .NET 4.0

I want to add web service refernece into .NET class library project 4.0.

(previously web service was used into ASP.NET web application 2.0 as "add web service refernece").

I can't find "Add web reference" but there is an option to add "Add service reference".

Please suggest, both can be same or "Add service reference" is only for WCF service.

How can i add my web service reference into this class library ?

Thank You

like image 397
dsi Avatar asked Jan 13 '14 07:01

dsi


People also ask

How do I add a reference to .NET Core library?

Add Class Library Reference To use a class library in your application, you must add a reference to the library to access its functionality. Right click on the project name of your console app in Solution Explorer and select Add ->Reference option.


1 Answers

Use that menu item - at the bottom of the dialog coming up there's another button for further options (German VS2010 translates to "Extended", English VS2010 says "Advanced"). In the dialog that comes up now, you can use the button "Add web service reference" in the "Compatibility" section.

Please note that configuration entries may be made to the app.config file of your DLL. As DLLs don't read the app.config file, you'll have to copy the settings to the app.config file of your application as described on SO multiple times.

like image 152
Thorsten Dittmar Avatar answered Oct 26 '22 23:10

Thorsten Dittmar