I have created a wsn-producer/consumer system not very different from the
sample included in Muse. To create subscriptions I use the
NotificationProducerClient.subscribe(). This method returns a
SubscriptionClient object. The subscription works fine but when I try to pause
the subscription by calling pauseSubscription on the returned
SubscriptionClient object. I get the following error in return.
<soap:Reason>
<soap:Text>[ID = 'ActionNotSupported'] The resource at
'SubscriptionManager' does not expose an operation with the WS-Action
'http://docs.oasis-open.org/wsn/bw-2/SubscriptionManager/PauseSubscriptionRequest'
through any of its capabilities.</soap:Text>
</soap:Reason>
In Muse every subscription creates a new resource, right? After debugging the
above scenario I end up in my subscription resource (SimpleWsResource)
'MuseResource-1' trying to find a Capability to handle the
PauseSubscriptionRequest (getCapabilityForAction(action)). I believed that
pause and resume should be handled automatically by the SubscriptionManager.
Any ideas what's missing? Do I have to implement my own
"PausableSubscriptionResource"?