Broker 10.5 | webMethods Broker Documentation | webMethods Broker Client C API Programmer's Guide | API Reference | awTx | awTxDeliverReplyEvents
 
awTxDeliverReplyEvents
BrokerError awTxDeliverReplyEvents(
BrokerTxClient txclient,
BrokerEvent request_event,
int n,
BrokerEvent *events);
txclient
The Broker client that is transactionally sending the event.
request_event
The original request event for which this reply is to be delivered.
n
The number of reply events to be delivered.
events
An array of reply event to be delivered.
Transfers the multiple events to the Broker to be delivered transactionally to the Broker client who sent the original request_event. This function properly sets the tag, appSeqn, and appLastSeqn envelope fields on all the events contained in the events array.
If the trackId envelope field was set on request_event, that value is copied to the reply events. If the request_event trackId envelope field was not set, the pubId envelope field from the request_eventwill be used instead.
Note:
An error will not be returned if the recipient, represented by the pubId field in request_event, no longer exists.
Possible BrokerError major codes
Meaning
AW_ERROR_INVALID_CLIENT
The Broker client, represented by the txclient parameter, has been destroyed or disconnected.
AW_ERROR_INVALID_EVENT
The request_event or one of the reply events is invalid, request_event was not received from the Broker, or one the reply events does not match its type definition.
AW_ERROR_NO_PERMISSION
The txclient does not have permission to publish the reply_event type.
AW_ERROR_NULL_PARAM
The parameter events is NULL.
AW_ERROR_OUT_OF_RANGE
The parameter n is less than zero.
AW_ERROR_UNKNOWN_EVENT_TYPE
The event type for event does not exist on the Broker.
See also: