Thursday, 29 May 2014

Creating and consuming Web Service using Delphi 7 -- 2

Part 2 : Hosting Web Service ISAPI on IIS

Part 1 of this article was dedicated to creating a Web Service DLL using Delphi 7.In this part we will be exploring  how to host this DLL or ISAPI on IIS.


Step 1 : Open IIS.
Step 2 : Add new Application. 




Give an Alias name of your Web Service and Physical Path where your ISAPI dll is residing. Here i am using C:\inetpub\wwwroot\WebServiceDemo.

Do not forget to create a folder "WebServiceDemo" under C:\inetpub\wwwroot.

Do one more thing..open your WebService DLL project and set Output directory as C:\inetpub\wwwroot\WebServiceDemo and Compile -Build the project. Now this path will be having your ISAPI having name as your Project name.


Step 3 : Now select WebServiceDemo Application and double click on Directory Browsing and enable it.








Step 4: Now Browse your application.





Step 6 : Click on Project1.dll. Your web service is ready..:)