I used Axis2 with the xmlbeans option to generate the java files from the wsdls:
http://localhost:8192/Broker/main.wsdl http://localhost:8192/Broker/porttypedef.wsdl I am not having any luck figuring out how to set the topic (through the setFilter ?). What am I missing? V/R, George import org.oasis_open.docs.wsn.b_2.SubscribeDocument; import org.oasis_open.docs.wsn.b_2.TopicExpressionDocument; import org.w3.www._2005._08.addressing.EndpointReferenceDocument; import org.w3.www._2005._08.addressing.EndpointReferenceType; import org.w3.www._2005._08.addressing.AttributedURIType; import org.oasis_open.docs.wsn.b_2.TopicExpressionType; import org.oasis_open.docs.wsn.b_2.FilterType; void subscribe(NotificationBrokerStub stub) { SubscribeDocument subscribeDocument = SubscribeDocument.Factory.newInstance(); SubscribeDocument.Subscribe s = subscribeDocument.addNewSubscribe(); AttributedURIType uriType = AttributedURIType.Factory.newInstance(); uriType.setStringValue("http://www.consumer.org/service/endpoint"); EndpointReferenceType consumerReferenceType = EndpointReferenceType.Factory.newInstance(); consumerReferenceType.setAddress(uriType); s.setConsumerReference(consumerReferenceType); String SIMPLE_TOPIC_DIALECT = "http://docs.oasis-open.org/wsn/t-1/TopicExpression/Simple"; TopicExpressionType topicExpression = TopicExpressionType.Factory.newInstance(); topicExpression.setDialect(SIMPLE_TOPIC_DIALECT); < how do I set the TopicExpression and Topic > .... stub.Subscribe(subscribeDocument); } -- View this message in context: http://www.nabble.com/WSN2005-Creating-Subscribe-Message-tp19791683p19791683.html Sent from the ServiceMix - User mailing list archive at Nabble.com.
