Greetings,
I'm not too sure exactly how to phrase my question, so I'll give it the best shot I can: I'd like to know how is it possible to make a web service as a component to be hosted in another application.
That is, ship a DLL that with some configuration options, could enable consumers to add the web service to their application directly.
The best example I can give of this is the ASP.NET Application services (Roles, Authentication, Profile). Since they were made compatible with non-asp.net applications via the JSON/SOAP1.1 services to enable their usage in WPF, WinForm, Silverlight, or any JSON or SOAP compliant apps, you can make a blank web application, add some web.config settings, and BANG, they can be called as a web service.
Now, the only way so far I've found was to ship a DLL with a Type with the appropriate service and web method attributes, and someone can then make an asmx or svc (WCF) file, add the line to point to the type in my assembly (instead of to code behind), and it will work...
I'm wondering if its possible to have it work without that (like the ASP.NET Application services), or if the app services only work that way because of some framework specific enhancements ("hard coded") that I cannot replicate easily in my frameworks? Basically, so a consumer could add the DLL to a web app, edit the web.config somehow, and have their app expose the service without any other operations.
Any clue?
Thanks!