Creating Web Server Applications with Web Broker

From RAD Studio
Jump to: navigation, search

Go Up to Using Web Broker Index


Web Broker components (located on the Internet tab of the Tool palette) enable you to create event handlers that are associated with a specific Uniform Resource Identifier (URI). When processing is complete, you can programmatically construct HTML or XML documents and transfer them to the client.

To create a new Web server application using the Web Broker architecture:

  1. Select File > New > Other.
  2. In the New Items dialog box, select the Web Broker tab under Delphi Projects and choose Web Server Application.
  3. A dialog box appears, where you can select one of the Web server application types:
    • Stand-alone application: Selecting this type of application sets up an environment for developing Web server applications that displays a form.
    • Stand-alone console application: Selecting this type of application sets up an environment for developing Web server console applications.
    • ISAPI dynamic link library: Selecting this type of application sets up your project as a DLL, with the exported methods expected by the Web server. It adds the library header to the project file and the required entries to the uses list and exports clause of the project file.
    • Apache dynamic link module: Selecting this type of application sets up your project as a DLL. Apache Web server applications are DLLs loaded by the Web server. Information is passed to the DLL, processed, and returned to the client by the Web server.
    • CGI stand-alone executable: Selecting this type of application sets up your project as a console application, and adds the required entries to the uses clause of the project file.

Topics

See Also