I'm writing simple wsn to redirect messages from an outer source to
all the consumers subscribed to the producer which makes all the
necessary redirection functions. Muse's examples (wsn-consumer &
wsn-producer) provide already implemented infrastructure for this
purpose. But WsnTestClient.java makes just one half of the desirable
functionality: it just subscribes Consumer. Due to Muse API it can be
done via SubscriptionClient (.destroy()). Thus, modifying the code
this way:

     NotificationProducerClient producer = new
NotificationProducerClient(epr);
     producer.setTrace(true);
     SubscriptionClient sc = producer.subscribe(consumer, null,
null);
    /* .. and now we want to destroy the subscription, i.e.
unsubscribe: */
     sc.destroy();

 ... should provide unsubscription. Instead, I get SoapFault:

org.apache.muse.ws.addressing.soap.SoapFault: Server returned HTTP
response code: 500 for URL:
http://192.168.3.27:8080/wsn-bridge/services/SubscriptionManager
    at
org.apache.muse.core.AbstractResourceClient.invoke(AbstractResourceClient.java:254)
    at
org.apache.muse.ws.resource.remote.WsResourceClient.destroy(WsResourceClient.java:105)
    at
corp.sap.pal.le.wsn.consumer.WsnTestClient.main(WsnTestClient.java:77)

    Thank you in advance, 
    Arthur Gulf
 

Reply via email to