RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TXMLBroker.ReconcileProducer Property

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

Pascal
property ReconcileProducer: TCustomContentProducer;
C++
__property TCustomContentProducer ReconcileProducer;

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.
 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!