the question is simple..
we usually use web reference to consume the web services literally(visual studio). But, my problem is another way round. I need to call a particular web service from a c# class to make the web service available to be consumed by others.
First of all, if you have a choice, you should be using WCF on both the server and client. If you can’t use it on the server for some reason, then at least use it on the client by using “Add Service Reference” instead of “Add Web Reference”. “Add Web Reference” is part of the legacy ASMX technology, which should not be used for new development.
Secondly, of course you can create a separate class library, and use “Add Service Reference” in that library. You can then write a class that has public methods which call the service. The users of this class library will call your public methods, and will not directly call the service.