How to deploy asp dot net webservice in IIS
In this post we are going to discuss about how to deploy asp dot net webservice we created in the previous post – How to create webservice in asp.net using csharp in IIS. Follow below steps to deploy webservice in IIS.
Step 1: Open IIS Manager
Step 2: Add application
Step 3: Browse Service.asmx file
Click on MyFirstWebService application we created and change to ‘Content View’. Right click on ‘Service.asmx’ file and select Browse.
You could see the below screen where the list of operations available in the service we created will be rendered for testing purpose.
Step 4: Test Webservice
It’s time to test the webservice we created, click ‘sayHello’ operation. It will open a web page the webmethod invocation can be done.
Enter name in the name textbox and click invoke button. It will open up new window where the response will be rendered as XML.