I was using MUSE cos i was developing my own WSN-Broker but after some problems and a lot of time lost i´m migrating to Servicemix for my Broker. The notification producer only sends notifications so probably it is a good to use a JAX-WS client, ¿could you tell me where i can find some examples of WSN-Notify over JAX-WS??
gnodet wrote: > > I think the problem comes from the wsa:To soap header from the request. > You need to remove it, set it to a correct value > http://servicemix.org/wsnotification/NotificationBroker > You may also try to disable the ws-addressing bit in servicemix-http: > <http:endpoint ... > > <http:policies /> <!-- Add this tag to your endpoint --> > </http:endpoint> > > Just out of curiosity, why are you trying to use Muse rather than a > plain jax-ws client ? > > On 10/17/07, alfredo.s.g_uam_spain <[EMAIL PROTECTED]> wrote: >> >> I´m trying to access WSN-Broker from example wsn-http-binding from a >> external >> java application using MUSE. >> wsn-http-binding example starts OK and i can create pullpoints or and >> subscribe to topics using the http ServiceMix WS-Notification Binding >> Example but when i try to access the JBI from the Muse java app i get >> the >> message quoted message >> >> ¿what i´m doing wrong? If i need to add something to the examples XML >> what >> is it? >> >> [CLIENT TRACE] SOAP envelope contents (outgoing): >> >> [java] <soap:Envelope >> xmlns:soap="http://www.w3.org/2003/05/soap-envelope"> >> [java] <soap:Header> >> [java] <wsa:To >> xmlns:wsa="http://www.w3.org/2005/08/addressing">http://localhost:8192/Broker/</wsa:To> >> [java] <wsa:Action >> xmlns:wsa="http://www.w3.org/2005/08/addressing">http://docs.oasis-open.org/wsn/bw-2/NotificationConsumer/NotifyRequest</wsa:Action> >> [java] <wsa:MessageID >> xmlns:wsa="http://www.w3.org/2005/08/addressing">uuid:01a5dc12-efdf-a8ce-53b1-aae32b8fd2ec</wsa:MessageID> >> [java] <wsa:From >> xmlns:wsa="http://www.w3.org/2005/08/addressing"> >> [java] >> <wsa:Address>http://www.w3.org/2005/08/addressing/role/anonymous</wsa:Address> >> [java] </wsa:From> >> [java] </soap:Header> >> [java] <soap:Body> >> [java] <wsnt:Notify >> xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2"> >> [java] <wsnt:NotificationMessage >> xmlns:msg="snmp.alfredo" >> [java] >> xmlns:wsa="http://www.w3.org/2005/08/addressing" >> xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2"> >> [java] <wsnt:Topic >> [java] >> Dialect="http://docs.oasis-open.org/wsn/t-1/TopicExpression/Concrete" >> xmlns:notif="snmp.alfredo">notif:SNMP</wsnt:Topic> >> [java] <wsnt:ProducerReference> >> [java] <wsa:Address >> xmlns:wsa="http://www.w3.org/2005/08/addressing">http://www.w3.org/2005/08/addressing/role/anonymous</wsa:Address> >> [java] </wsnt:ProducerReference> >> [java] <wsnt:Message> >> [java] <msg:MyMessage >> xmlns:msg="snmp.alfredo">Index = 0: 1.3.6.1.2.1.1.1.0 = Linuxxxxxxxxxxxxx >> #2 >> SMP Sun Sep 23 22:56:28 UTC 2007 i686</msg:MyMessage> >> [java] </wsnt:Message> >> [java] </wsnt:NotificationMessage> >> [java] </wsnt:Notify> >> [java] </soap:Body> >> [java] </soap:Envelope> >> >> [java] [CLIENT TRACE] SOAP envelope contents (incoming): >> >> [java] <soap:Envelope >> xmlns:soap="http://www.w3.org/2003/05/soap-envelope"> >> [java] <soap:Body> >> [java] <soap:Fault> >> [java] <soap:Code> >> [java] <soap:Value>soap:Receiver</soap:Value> >> [java] </soap:Code> >> [java] <soap:Reason> >> [java] <soap:Text >> xml:lang="en">javax.jbi.messaging.MessagingException: Could not find >> route >> for exchange: InOut[ >> [java] id: ID:127.0.0.1-115ad716208-3:1 >> [java] status: Active >> [java] role: provider >> [java] interface: >> {http://docs.oasis-open.org/wsn/bw-2}NotificationConsumer >> [java] service: {http://localhost:8192}Broker >> [java] operation: >> {http://docs.oasis-open.org/wsn/bw-2}NotifyRequest >> [java] in: <?xml version="1.0" >> encoding="UTF-8"?><wsnt:Notify >> xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2" >> xmlns:soap="http://www.w3.org/2003/05/soap-envelope"> >> [java] <wsnt:NotificationMessage >> xmlns:msg="snmp.alfredo" xmlns:wsa="http://www.w3.org/2005/08/addressing" >> xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2"> >> [java] <wsnt:Topic xmlns:notif="snmp.alfredo" >> Dialect="http://docs.oasis-open.org/wsn/t-1/TopicExpression/Concrete">notif:SNMP</wsnt:Topic> >> [java] <wsnt:ProducerReference> >> [java] <wsa:Address >> xmlns:wsa="http://www.w3.org/2005/08/addressing">http://www.w3.org/2005/08/addressing/role/anonymous</wsa:Address> >> [java] </wsnt:ProducerReference> >> [java] <wsnt:Message> >> [java] <msg:MyMessage >> xmlns:msg="snmp.alfredo">Index = 0: 1.3.6.1.2.1.1.1.0 = Linux xxxxx#2 >> SMP >> Sun Sep 23 22:56:28 UTC 2007 i686</msg:MyMessage> >> [java] </wsnt:Message> >> [java] </wsnt:NotificationMessage> >> [java] </wsnt:Notify> >> [java] ] for service: {http://localhost:8192}Broker and interface: >> {http://docs.oasis-open.org/wsn/bw-2}NotificationConsumer</soap:Text> >> [java] </soap:Reason> >> [java] </soap:Fault> >> [java] </soap:Body> >> [java] </soap:Envelope> >> >> [java] org.apache.muse.ws.addressing.soap.SoapFault: >> javax.jbi.messaging.MessagingException: Could not find route for >> exchange: >> InOut[ >> [java] id: ID:127.0.0.1-115ad716208-3:1 >> [java] status: Active >> [java] role: provider >> [java] interface: >> {http://docs.oasis-open.org/wsn/bw-2}NotificationConsumer >> [java] service: {http://localhost:8192}Broker >> [java] operation: >> {http://docs.oasis-open.org/wsn/bw-2}NotifyRequest >> [java] in: <?xml version="1.0" encoding="UTF-8"?><wsnt:Notify >> xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2" >> xmlns:soap="http://www.w3.org/2003/05/soap-envelope"> >> [java] <wsnt:NotificationMessage >> xmlns:msg="snmp.alfredo" >> xmlns:wsa="http://www.w3.org/2005/08/addressing" >> xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2"> >> [java] <wsnt:Topic xmlns:notif="snmp.alfredo" >> Dialect="http://docs.oasis-open.org/wsn/t-1/TopicExpression/Concrete">notif:SNMP</wsnt:Topic> >> [java] <wsnt:ProducerReference> >> [java] <wsa:Address >> xmlns:wsa="http://www.w3.org/2005/08/addressing">http://www.w3.org/2005/08/addressing/role/anonymous</wsa:Address> >> [java] </wsnt:ProducerReference> >> [java] <wsnt:Message> >> [java] <msg:MyMessage >> xmlns:msg="snmp.alfredo">Index = 0: 1.3.6.1.2.1.1.1.0 = Linux >> canal-desktop >> 2.6.17-12-generic #2 SMP Sun Sep 23 22:56:28 UTC 2007 >> i686</msg:MyMessage> >> [java] </wsnt:Message> >> [java] </wsnt:NotificationMessage> >> [java] </wsnt:Notify> >> [java] ] for service: {http://localhost:8192}Broker and interface: >> {http://docs.oasis-open.org/wsn/bw-2}NotificationConsumer >> [java] at >> org.apache.muse.core.AbstractResourceClient.invoke(AbstractResourceClient.java:298) >> [java] at >> org.apache.muse.core.AbstractResourceClient.invoke(AbstractResourceClient.java:254) >> [java] at >> org.apache.muse.ws.notification.remote.NotificationConsumerClient.notify(NotificationConsumerClient.java:99) >> [java] at >> org.apache.muse.ws.notification.remote.NotificationConsumerClient.notify(NotificationConsumerClient.java:83) >> [java] at >> org.apache.muse.test.wsn.Snmp_muse$TextTableListener.next(Unknown Source) >> [java] at >> org.snmp4j.util.TableUtils$TableRequest.onResponse(Unknown Source) >> [java] at org.snmp4j.Snmp.processPdu(Unknown Source) >> [java] at >> org.snmp4j.MessageDispatcherImpl.fireProcessPdu(Unknown >> Source) >> [java] at >> org.snmp4j.MessageDispatcherImpl.dispatchMessage(Unknown >> Source) >> [java] at >> org.snmp4j.MessageDispatcherImpl.processMessage(Unknown >> Source) >> [java] at >> org.snmp4j.MessageDispatcherImpl.processMessage(Unknown >> Source) >> [java] at >> org.snmp4j.transport.AbstractTransportMapping.fireProcessMessage(Unknown >> Source) >> [java] at >> org.snmp4j.transport.DefaultUdpTransportMapping$ListenThread.run(Unknown >> Source) >> >> -- >> View this message in context: >> http://www.nabble.com/ServiceMix-WSN-Broker--access-from-MUSE-tf4639744s12049.html#a13251370 >> Sent from the ServiceMix - User mailing list archive at Nabble.com. >> >> > > > -- > Cheers, > Guillaume Nodet > ------------------------ > Blog: http://gnodet.blogspot.com/ > > -- View this message in context: http://www.nabble.com/ServiceMix-WSN-Broker--access-from-MUSE-tf4639744s12049.html#a13253263 Sent from the ServiceMix - User mailing list archive at Nabble.com.
