XMLBrokr.TXMLBroker.ReconcileProducer

From RAD Studio VCL Reference
Jump to: navigation, search

Contents

Delphi Information

From XMLBrokr.pas

	property ReconcileProducer: TCustomContentProducer read FReconcileProducer write SetReconcileProducer;


Unit: XMLBrokr

Type: property

Visibility: published

Member Of: TXMLBroker

C++ Information

From XMLBrokr.hpp

	__property Httpapp::TCustomContentProducer * ReconcileProducer = {read=FReconcileProducer,write=SetReconcileProducer};


Unit: XMLBrokr

Type: property

Visibility: public

Member Of: TXMLBroker

Description

Specifies the producer that generates response message content when an update generates errors.


Use ReconcileProducer to specify the component that generates the content of response messages to update requests when the update operation generated errors.

When the XML broker applies updates, the application server returns a delta packet containing all records that could not be updated because of errors. The XML broker can attempt to respond to those errors or generate its own response message using the OnGetErrorResponse event. However, unless the OnGetErrorResponse event handler generates an HTML document to be sent in the response message and indicates that the update is completely handled, the XML broker must still generate a response to the update operation. To do so, it calls the Content method of the ReconcileProducer to generate the content of the response message.

Tip:  The Reconcile producer will probably need information about the update errors that the application server returned. You can provide it with this information either by initializing the Reconcile producer in an OnGetErrorResponse event handler or by having the Reconcile producer call the GetErrors method.
Note:  If there is no ReconcileProducer assigned and an update generates errors, the XML broker raises an exception unless the OnGetErrorResponse event handler generates a response message.
Tip:  The InetXCustom demo contains a TReconcilePageProducer component that you can use as the value of the ReconcileProducer property or as the basis of your own reconcile producer.

See Also

Personal tools
Translations
Newest Version