What are the various ways of hosting a WCF service?Ways of hosting WCF Service
1. Self hosting: The service code is embedded within the application code. An end point for the service is defined and an instance of ServiceHost is created. A method can be written then to call the service.
2. Managed Windows services: Here, some hosting code is written in the application code. It consists of registering the application domain as a windows service.
3. Internet Information Services: Does not require any hosting code to be written in the application code. IIS host services can only use HTTP transport mechanism. IIS needs to be installed and configured on the server.
4. Windows process activation service: Does not require any hosting code to be written in the application code. WAS needs to be installed and configured on the server. WCF uses the listener adapter interface to communicate activation requests. Requests are transported over non HTTP protocols.
|