How to do it...

Perform the following steps:

  1. Navigate to Delphi Project | Web Broker | Web Server Application.
  1. Now, the wizard will ask you what type of web server application you want to create. This demo will be built as a console application. However, you can take advantage of the flexibility of WebBroker and add another type of application, for instance, an ISAPI DLL or a Windows service. At this point, select the standalone console application and click Next.
  2. The wizard proposes a TCP port where the service will listen. Click on Test port; if the test port succeeds, use it, otherwise change the port until the test passes. In this recipe, port 8080 is used.
  3. Click Finish.
  4. Save all. Name the project PeopleManager.dproj and the WebModule ...

Get Delphi Cookbook - Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.