RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TXMLBroker Class

TXMLBroker fetches XML data packets from an application server and applies XML updates to the application server.

Pascal
TXMLBroker = class(TComponent, IWebDispatch, IGetXMLStream);
C++
class TXMLBroker : public TComponent, public IWebDispatch, public IGetXMLStream;

XMLBrokr

Use TXMLBroker in an application that is simultaneously the client of a multi-tiered database application and a Web server application. This class serves two major functions: 

It fetches XML data packets from a provider using the IAppServer interface. 

It receives HTTP messages from Web browsers that contain XML delta packets and applies them to the application server. 

Add a TXMLBroker object to a Web module to make database information supplied by a provider on the application server available as XML. An InternetExpress page producer (TInetXPageProducer) in the same Web module uses this XML to build HTML pages that represent that database information. 

The XML broker automatically registers itself with the Web module (or Web dispatcher) as an auto-dispatching object. This means that the Web module or Web dispatcher forwards all incoming HTTP messages directed to the XML broker without requiring the use of Web action items.  

These incoming messages are assumed to be update messages created by the browser in response to HTML generated by a TApplyUpdatesButton component. The XML broker automatically applies the delta packet (the content of the HTTP request message) to the application server, and passes any update errors to a separate content producer, which can generate a response message. 

 

TRemoteDataModule 

IAppServer 

TInetXPageProducer 

TApplyUpdatesButton 

Building an InternetExpress Application

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!