How to host WCF Webservices

We can say that WCF is a flagship product from Microsoft for developing distributed application using SOA. Before WCF traditional ASMX Web services were hosted only on Internet Information Services . The hosting options for WCF services are significantly enhanced from Microsoft .NET Framework 3.0 onwards. In WCF there are three main parts: Service, Endpoints and Hosting Environment. Multiple services can be hosted using a single host process and also the s
ame service type can be hosted in multiple host processes. We can host a WCF service in two ways Self Hosting and IIS Hosting. Here we will examine Self Hosting along with a comparative discussion of different hosting environments.