Broker 10.5 | webMethods Broker Documentation | webMethods Broker Client C API Programmer's Guide | API Reference | awPublish | awPublishEvents
 
awPublishEvents
BrokerError awPublishEvents (
BrokerClient client,
int n,
BrokerEvent *events);
client
The Broker client that wishes to publish the events.
n
The number of events in the events array.
events
The array of events to be published.
Sends the array of events to the Broker for publication. Either all events or none will be published.
Note:
This function can fail if the Broker client does not have permission to publish this event type, based on its client group, or if the event is not properly formed. See awCanPublish for more information.
Possible BrokerError major codes
Meaning
AW_ERROR_INVALID_CLIENT
The client is not valid.
AW_ERROR_INVALID_EVENT
The event is not valid or the event does not match its type definition.
AW_ERROR_NO_PERMISSION
The client does not have permission to publish all of the 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 does not exist on the Broker.
See also: