Creating Web Broker Applications
Go Up to Creating Web Server Applications
You can use Web Broker to create Web server applications such as CGI applications or dynamic-link libraries (DLLs). These Web server applications can contain any nonvisual component. Components on the Internet category of the Tool palette enable you to create event handlers, programmatically construct HTML or XML documents, and transfer them to the client.
To create a new Web server application using the Web Broker architecture, choose File > New > Other, and then navigate to either:
- Delphi Projects > WebBroker > Web Server Application
- C++ Projects > WebBroker > Web Server Application
Use this wizard to create and specify the type of server your Web Server application will work with.
Web server application types :
Item | Description |
---|---|
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 |
ISAPI Web server applications are dynamic link libraries (DLL) that are loaded by the Web server. Client request information is passed to the DLL as a structure and evaluated by TISAPIApplication. Each request message is handled in a separate execution thread. Selecting this type of application adds the library header of the project files and required entries to the uses list and exports clause of the project file. |
Apache dynamic link module |
The Apache Web server hosts static or dynamic websites, providing secure and efficient web server features as SSL (Secure Sockets Layer), and virtual domains. Apache has support for HTTP and HTTPS. |
CGI Stand-alone executable |
A CGI stand-alone Web server application is a console application that receives client request information on standard input and passes the results back to the server on standard output. This data is evaluated by TCGIApplication. Each request message is handled by a separate instance of the application. Selecting this type of application adds the library header of the project files and required entries to the uses list and exports clause of the project file.. |
CGI applications use more system resources on the server, so it is better to create complex applications as ISAPI, or Apache DLL applications. When writing an application that potentially interacts with other platforms, you should select CGI stand-alone or Apache Shared Module (DLL) for Web server development. These are also the same options you see when creating Web Service applications.