Datasnap.Win.SConnect.TWebConnection

From RAD Studio API Documentation
Jump to: navigation, search

Datasnap.Win.SConnect.TStreamedConnectionDatasnap.Win.MConnect.TDispatchConnectionDatasnap.DBClient.TCustomRemoteServerData.DB.TCustomConnectionSystem.Classes.TComponentTWebConnection

Delphi

TWebConnection = class(TStreamedConnection, ITransport)

C++

class PASCALIMPLEMENTATION TWebConnection : public TStreamedConnection

Properties

Type Visibility Source Unit Parent
class public
Datasnap.Win.SConnect.pas
Datasnap.Win.SConnect.hpp
Datasnap.Win.SConnect Datasnap.Win.SConnect

Description

TWebConnection uses HTTP to manage the connection to an application server.

TWebConnection is used in the client portion of a multi-tiered database application to establish and maintain the connection between the client and a remote application server. The Web connection object can

Establish an initial connection to a remote application server.

Obtain an IAppServer for the application server.

Obtain a list of providers on the application server.

Drop the connection to the remote application server.

TWebConnection establishes the initial connection between the client application and a remote application server using HTTP. To use TWebConnection, you must have the following:

Wininet.dll must be installed on the client system. Wininet.dll is found in the Windows system directory if you have IE3 or higher installed.

The server system must have IIS version 4 or better or Netscape Enterprise version 3.6 or better.

HTTPsrvr.dll must be installed with the Web server to which TWebConnection forms a connection. HTTPsrvr.dll launches the application server and marshals all calls to the application server interface.

Once the connection is established, the client registers any or all of its client datasets, and these client datasets use the IAppServer interface from the Web connection component to communicate with providers on the application server, or to otherwise call the application server's data module interface.

To connect to remote application servers using DCOM, use the TDCOMConnection component instead. To connect to remote application servers using TCP/IP, use the TSocketConnection component instead. To connect to remote application servers using SOAP, use the TSoapConnection component.

See Also