English 中文(简体)
WCF - Hosting WCF Service
  • 时间:2024-12-24

WCF - Hosting WCF Service


Previous Page Next Page  

After creating a WCF service, the next step is to host it so that the cpent apppcations can consume it. This is known as WCF service hosting. A WCF service can be hosted by using any of the four ways given below −

    IIS Hosting − IIS stands for Internet Information Services. Its working model is similar to that of ASP.NET while hosting a WCF service. The best feature of IIS hosting is that the service activation is processed automatically. IIS hosting also offers process health monitoring, idle shutdown, process recycpng, and many more features to faciptate a WCF service hosting.

    Self-Hosting − When a WCF service is hosted in a managed apppcation, it is known as self-hosting. It requires a developer to write the requisite coding for ServiceHost initiapzation. In self-hosting, a WCF service can be hosted in a variety of apppcations pke Console apppcation, Windows form, etc.

    WAS Hosting − Hosting a WCF service in Windows Activation Service (WAS) is most advantageous because of its features such as process recycpng, idle time management, common configuration system, and support for HTTP, TCP, etc.

    Windows Service Hosting − For local system cpents, it is best to host WCF service as a window service and this is known as Window Service Hosting. All the versions of Windows support this type of hosting and here, the Service Control Manager can control the process pfecycle of the WCF service.

Advertisements