Deploying the Web Service
Deploying the Web Service
| 1. | Now everything’s set up you can click on ‘Generate Web Service’. This will: |
| o | Generate C# source files to the folder specified earlier |
| o | Compile the Web Service into a DLL |
| o | Register the Web Service wirth IIS |
| 2. | When the Web Service has generated you will be given the opportunity to view it. Click ‘Yes’ to open it in a browser. |
To use the Web Service in Xcelsius you’ll need the Web Service URL with ‘?WSDL’ appended to it.
| o | Eg. ‘http://127.0.0.1/Products/Products.asmx?wsdl’. |

| 3. | Viewing a Web Service in a browser shows a list of available methods, which you can test. |
Open the first method and enter a region name, then press ‘Invoke’. This should bring back a list of corresponding products, in XML format.

| 4. | Finally, save your Web Service configuration project. |
How to remove the Web Service
| 1. | Open the ‘Internet Information Services’ configuration box. (Start/Control Panel/Administrative Tools/Internet Information Services) and expand the folder tree until you can locate the generated Web Service (named ‘Products’ by default). |

| 2. | You’ll need to delete the Web Service here by either right-clicking and choosing delete, or pressing the red x button. When this is done, close the IIS admin window. |
| 3. | You will need to restart IIS in order complete the ridding. Go to Start/Run and type in iisreset. |
| 4. | Finally navigate to the folder you chose to generate the Web Service to. |
| o | Eg. C:\Web Services\MyWebService01 |
| 5. | Look inside the ‘Projects’ and ‘WebSites’ folders. The folders you must delete will have the same name as the Web Service and may exist in both ‘Projects’ and ‘WebSites’. |
| o | Eg. C:\WebServices\ MyWebService01\Projects\Products, C:\WebServices\ MyWebService01\WebSites\Products |