The SubscriptionManager portType in WS-BaseNotification-1_3.wsdl does not have the Pause/Resume operations (they are optional). These operations are implemented as part of the SubscriptionManager capability, though, so all you have to do to expose them is add them to the WSDL. Just add the two <wsdl:operation/> elements to the SubscriptionManager portType (the <wsdl:message/>s are already defined), remembering to include the wsa:Action for each.
If you're an Axis2 user, you must also add the WS-A Action to the services.xml file, or Axis2 won't let your request through. The two Action URIs are: http://docs.oasis-open.org/wsn/bw-2/SubscriptionManager/PauseSubscriptionRequest http://docs.oasis-open.org/wsn/bw-2/SubscriptionManager/ResumeSubscriptionRequest "Rosberg Mattias" <[EMAIL PROTECTED]> wrote on 02/27/2007 07:00:11 AM: > 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"? --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
