Broker 10.15 | webMethods Broker Documentation | webMethods Broker Client C API Programmer's Guide | API Reference | awCancel | awCancelSubscriptionFromStruct
 
awCancelSubscriptionFromStruct
BrokerError awCancelSubscriptionFromStruct(
BrokerClient client,
BrokerSubscription *sub);
client
The Broker client whose event subscription is to be cancelled.
sub
The structure representing the subscription the Broker client wishes to cancel. See BrokerSubscription Objects for more information.
Cancels a subscription, specified by the subscription structure, for the specified Broker 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.
AW_ERROR_NULL_PARAM
The sub parameter is NULL or the event_type_name it contains is NULL.
See also: