WseMsgBrokerClient topicOnlyReceiverApi = new WseMsgBrokerClient();
topicOnlyReceiverApi.init(brokerEpr);
NotificationReciever topicOnlyMsgReceiver = new NotificationReciever("Topic Only");
String[] topicConsumerEPRs = topicOnlyReceiverApi.startConsumerService(consumerPort, topicOnlyMsgReceiver);
assertTrue("invalid consumer eprs returned", topicConsumerEPRs.length > 0);
String topicOnlySubId = topicOnlyReceiverApi.subscribe(topicConsumerEPRs[0], topic, null);
System.out.println("Topic only subscription ID: " + topicOnlySubId);
WseMsgBrokerClient xpathAndTopicReceiverApi = new WseMsgBrokerClient();
xpathAndTopicReceiverApi.init(brokerEpr);
NotificationReciever topicAndXpathMsgReceiver = new NotificationReciever("Topic And Xpath");