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 for Windows:

  1. Select File > New > Other.
  2. In the New Items dialog box, select the Web tab under Delphi and select Web Server Application.
  3. A dialog box appears, where you can select one of the Web server application types:
    • Stand-alone application: Sets up an environment for developing Web server applications that displays a form.
    • Stand-alone console application: Sets up an environment for developing Web server console applications.
    • ISAPI dynamic link library: 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: 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: Sets up your project as a console application, and adds the required entries to the uses clause of the project file.

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

  1. Select File > New > Other.
  2. In the New Items dialog box, select the Web tab under Delphi and select Web Server Application.
  3. A dialog box appears, where you can select one of the Web server application types:
    • Stand-alone application: Sets up an environment for developing Web server applications that displays a form.
    • Apache dynamic link module: Sets up your project as a SO. Apache Web server applications are SOs loaded by the Web server. Information is passed to the SO, processed, and returned to the client by the Web server.
    • CGI stand-alone executable: Sets up your project as a console application, and adds the required entries to the uses clause of the project file.

Topics

See Also