Hi Chris,

Basically I had just to run the wsn-http-binding example bundled in the
SNAPSHOT release.
The NotificationBroker's wsdl is available at
http://localhost:8192/Broker/?wsdl
You can then use a tool to generate the client stubs from the wsdl (for
instance axis WSDL2Java) and call the Subscribe operation.
To subscribe you need to provide a topic and a consumer reference.
The consumer reference can be directly added to the subscribe object whereas
the topic has to be added as a filter to the subscribe object.

Here is the code to (after WSDL2Java generation) to specify the topic :

Subscribe subscribe = new Subscribe();

String WSN_URI = "http://docs.oasis-open.org/wsn/b-2";;
QName QNAME_TOPIC_EXPRESSION = new QName(WSN_URI, "TopicExpression");
FilterType filter = new FilterType();
MessageElement[] elements = new MessageElement[1];
elements[0] = new MessageElement();
elements[0].setQName(QNAME_TOPIC_EXPRESSION);
elements[0].setValue("myTopic");
filter.set_any(elements);

subscribe.setFilter(filter);

Hope this helps.

Cheers,

Fred
--
View this message in context: 
http://www.nabble.com/Send-a-remote-WS-Notification-subscription-t1524232.html#a4314758
Sent from the ServiceMix - User forum at Nabble.com.

Reply via email to