Migrating the Web Service to IIS
From HTNG Connectivity Wiki
Moving the Code to IIS
Following the success with Cassini the service code can now be moved to IIS. In order to do this you will need to make sure that IIS is installed on the machine you are migrating the Web Service onto. You can do this via Control Panel->Add or Remove Programs(Windows 2003)/Programs and Features(Vista) you will need to Add/Remove Windows Components(Windows 2003) or Turn Windows features on or off (Vista).
Once IIS is installed you need to start by creating an ActivityService Virtual Directory. This is done by right clicking on the Default Web Site from the IIS Management Console as per the screen that follows:
File:IISMigration 1 VirtualDirectory.jpg
Locate the place where you generated the Service1.asmx web service and select it as the directory location
File:IISMigration 2 FindCode.jpg
Make sure that the Virtual Directory has been setup for both Read and Execution
File:IISMigration 3 ExecutePermissions.jpg
Also double check that the ASP.Net version is 2.0 or better
File:IISMigration 4 ASP Net level.jpg
The next stemp involves registering the Web Service using one of the IIS utilities. You will need to navigate to the directory where the correct version of aspnet_regiis.exe was installed. In the example below it was in the following directory C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727. Navigate a Command window to this directory and run the following command aspnet_regiis.exe -s W3SVC/1/ROOT/ActivityService
File:IISMigration 5 Register WebService.jpg
Once these processes have been done, make sure that your web service comes up by going into a browser and entering http://localhost/ActivityService/Service1.asmx
File:IISMigration 6 Register TestWebService.jpg
During the next section Adding a Web Service Client using the SGI specification we'll create a client application that accesses our new web service on installed on IIS.