XMLBrokr.TXMLBroker.OnGetErrorResponse

From RAD Studio VCL Reference
Jump to: navigation, search

Contents

Delphi Information

From XMLBrokr.pas

	property OnGetErrorResponse: TGetErrorResponseEvent read FGetErrorResponse write FGetErrorResponse;


Unit: XMLBrokr

Type: event

Visibility: published

Member Of: TXMLBroker

C++ Information

From XMLBrokr.hpp

	__property TGetErrorResponseEvent OnGetErrorResponse;


Unit: XMLBrokr

Type: property

Visibility: public

Member Of: TXMLBroker

Description

Occurs when there are errors applying updates to the application server.


Write an OnGetErrorResponse event handler to generate the response message after an update request encountered errors or to initialize a ReconcileProducer before it generates the response.

The Sender parameter is the XML broker that applied updates to the application server and received back a delta packet of update errors.

ErrorCount is the number of update errors found by the application server before it halted the update operation.

XMLErrors is a string of XML returned by the application server. It is a delta packet containing all the updates that could not be applied.

Request is the original request message that contains the delta packet of updates from the Web browser.

Response is the emerging response message that will be sent to the Web browser in response to the update request. Fill in the properties of this object to generate a response (such as an error message or a reconcile form) that indicates the errors in XMLErrors.

Handled indicates whether the event handler completed filling out Response. Set Handled to true if the event handler completes the response for the Web browser. Leave Handled as false if ReconcileProducer should generate the content of Response.

Note:  If the OnGetErrorResponse event handler does not set Handled to true and there is no ReconcileProducer, the XML broker raises an exception.

See Also

Personal tools
Translations
Newest Version