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
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With