Building and hosting services for WCF
Overview of Microsoft Windows Communication Foundation (WCF) services explaining how to create and configure WCF services.
The IBM MQ custom channel for WCF and the WCF services which use it, can be hosted by the following methods:- Self-hosting
- Windows Service
The IBM MQ custom channel for WCF cannot be hosted in Windows Process Activation Service.
The following topics provide some simple self-hosting examples to demonstrate the steps involved. The Microsoft WCF online documentation, which contains further information and the latest details, can be found on the Microsoft MSDN website at https://msdn.microsoft.com.
- Building WCF service applications using method 1: Self-hosting administratively using an application configuration file
Having created an application configuration file, open an instance of the service and add the specified code to the application. - Building WCF service applications using method 2: Self-hosting programmatically directly from the application
Add the binding properties, create the service host with an instance of the required service class and open the service. - Exposing metadata using an HTTP endpoint
Instructions for exposing the metadata of a service which is configured to use the IBM MQ custom channel for WCF.
Parent topic: Use IBM MQ custom channels for WCF