Question: how wcf service hosted in iis?
Answer: Step 1: Create a new Visual Studio project. Choose the WCF installed template and create a new WCF Service Application:
Step 2: Create your web service code. Update the IService1. ... 
Step 3: Create the IIS service. Open IIS Manager. ... 
Step 4 – consume the web service. ... 
Step 5: Consume the service.