Broker 10.5 | webMethods Broker Documentation | webMethods Broker Client C API Programmer's Guide | API Reference | awCancel | awCancelSubscriptionsFromStructs
 
awCancelSubscriptionsFromStructs
BrokerError awCancelSubscriptionsFromStructs(
BrokerClient client,
int n,
BrokerSubscription *subs);
client
The Broker client whose event subscription is to be cancelled.
n
The number of subscription structures in the array.
subs
Any array of subscription structures representing the subscriptions the Broker client wishes to cancel.
Cancels the n subscriptions, specified by the array of subscription structures subs, for the specified client. Only the event_type_name and filter fields of the subscription structure are used to find a matching subscription to cancel; the subId field is ignored.
Possible BrokerError major codes
Meaning
AW_ERROR_INVALID_CLIENT
The client has been destroyed or disconnected.
AW_ERROR_INVALID_SUBSCRIPTION
No matching subscription was found for one or more of subs.
AW_ERROR_NULL_PARAM
The parameter subs is NULL or an event_type_name field in one of the subscription structures is NULL.
AW_ERROR_OUT_OF_RANGE
The n parameter is less than zero.
See also: