You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by Guillaume Nodet <gn...@gmail.com> on 2007/10/17 13:50:21 UTC

Re: ServiceMix WSN-Broker access from MUSE

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 <al...@gmail.com> 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: &lt;?xml version="1.0"
> encoding="UTF-8"?&gt;&lt;wsnt:Notify
> xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2"
> xmlns:soap="http://www.w3.org/2003/05/soap-envelope"&gt;
>      [java]             &lt;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"&gt;
>      [java]                 &lt;wsnt:Topic xmlns:notif="snmp.alfredo"
> Dialect="http://docs.oasis-open.org/wsn/t-1/TopicExpression/Concrete"&gt;notif:SNMP&lt;/wsnt:Topic&gt;
>      [java]                 &lt;wsnt:ProducerReference&gt;
>      [java]                     &lt;wsa:Address
> xmlns:wsa="http://www.w3.org/2005/08/addressing"&gt;http://www.w3.org/2005/08/addressing/role/anonymous&lt;/wsa:Address&gt;
>      [java]                 &lt;/wsnt:ProducerReference&gt;
>      [java]                 &lt;wsnt:Message&gt;
>      [java]                     &lt;msg:MyMessage
> xmlns:msg="snmp.alfredo"&gt;Index = 0: 1.3.6.1.2.1.1.1.0 = Linux xxxxx#2 SMP
> Sun Sep 23 22:56:28 UTC 2007 i686&lt;/msg:MyMessage&gt;
>      [java]                 &lt;/wsnt:Message&gt;
>      [java]             &lt;/wsnt:NotificationMessage&gt;
>      [java]         &lt;/wsnt:Notify&gt;
>      [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/

Re: ServiceMix WSN-Broker access from MUSE

Posted by Guillaume Nodet <gn...@gmail.com>.
ServiceMix transforms the wsdl, so maybe the wsdl may be slightly bad.
You should try with the ones from the component sources instead.
ServiceMix uses such a tool...

2007/10/19, alfredo.s.g_uam_spain <al...@gmail.com>:
>
> Using JAXWS in NetBeans  i get an error stating that something is
> duplicated.
> Using AXIS2 ( wsdl2java.sh) it finishes generation but building i get an
> error stating some functions does not receive the params needed.
>
> There is nothing wrong with the service, so im doing something wrong during
> code-generation, ¿what could it be?
>
> thanks
>
>
> JAXWS output:
>
> [WARNING] src-resolve.4.2: Error resolving component
> 'wsrf-bf:BaseFaultType'. It was detected that 'wsrf-bf:BaseFaultType' is in
> namespace 'http://docs.oasis-open.org/wsrf/bf-2', but components from this
> namespace are not referenceable from schema document
> 'file:/home/canal/Desktop/SnmpBROKERED/xml-resources/web-service-references/main/wsdl/localhost_8192/Broker/porttypedef.wsdl#types?schema6'.
> If this is the incorrect namespace, perhaps the prefix of
> 'wsrf-bf:BaseFaultType' needs to be changed. If this is the correct
> namespace, then an appropriate 'import' tag should be added to
> 'file:/home/canal/Desktop/SnmpBROKERED/xml-resources/web-service-references/main/wsdl/localhost_8192/Broker/porttypedef.wsdl#types?schema6'.
>   line 908 of
> file:/home/canal/Desktop/SnmpBROKERED/xml-resources/web-service-references/main/wsdl/localhost_8192/Broker/porttypedef.wsdl#types?schema6
>
> [WARNING] src-resolve.4.2: Error resolving component
> 'wsa:EndpointReferenceType'. It was detected that
> 'wsa:EndpointReferenceType' is in namespace
> 'http://www.w3.org/2005/08/addressing', but components from this namespace
> are not referenceable from schema document
> 'file:/home/canal/Desktop/SnmpBROKERED/xml-resources/web-service-references/main/wsdl/localhost_8192/Broker/porttypedef.wsdl#types?schema2'.
> If this is the incorrect namespace, perhaps the prefix of
> 'wsa:EndpointReferenceType' needs to be changed. If this is the correct
> namespace, then an appropriate 'import' tag should be added to
> 'file:/home/canal/Desktop/SnmpBROKERED/xml-resources/web-service-references/main/wsdl/localhost_8192/Broker/porttypedef.wsdl#types?schema2'.
>   line 153 of
> file:/home/canal/Desktop/SnmpBROKERED/xml-resources/web-service-references/main/wsdl/localhost_8192/Broker/porttypedef.wsdl#types?schema2
>
> [WARNING] src-resolve.4.2: Error resolving component 'xml:lang'. It was
> detected that 'xml:lang' is in namespace
> 'http://www.w3.org/XML/1998/namespace', but components from this namespace
> are not referenceable from schema document
> 'file:/home/canal/Desktop/SnmpBROKERED/xml-resources/web-service-references/main/wsdl/localhost_8192/Broker/porttypedef.wsdl#types?schema2'.
> If this is the incorrect namespace, perhaps the prefix of 'xml:lang' needs
> to be changed. If this is the correct namespace, then an appropriate
> 'import' tag should be added to
> 'file:/home/canal/Desktop/SnmpBROKERED/xml-resources/web-service-references/main/wsdl/localhost_8192/Broker/porttypedef.wsdl#types?schema2'.
>   line 168 of
> file:/home/canal/Desktop/SnmpBROKERED/xml-resources/web-service-references/main/wsdl/localhost_8192/Broker/porttypedef.wsdl#types?schema2
>
> [WARNING] s4s-elt-invalid-content.1: The content of
> '#AnonType_DescriptionBaseFaultType' is invalid.  Element 'attribute' is
> invalid, misplaced, or occurs too often.
>   line 168 of
> file:/home/canal/Desktop/SnmpBROKERED/xml-resources/web-service-references/main/wsdl/localhost_8192/Broker/porttypedef.wsdl#types?schema2
>
> [WARNING] src-resolve.4.2: Error resolving component
> 'wsa:EndpointReferenceType'. It was detected that
> 'wsa:EndpointReferenceType' is in namespace
> 'http://www.w3.org/2005/08/addressing', but components from this namespace
> are not referenceable from schema document
> 'file:/home/canal/Desktop/SnmpBROKERED/xml-resources/web-service-references/main/wsdl/localhost_8192/Broker/porttypedef.wsdl#types?schema4'.
> If this is the incorrect namespace, perhaps the prefix of
> 'wsa:EndpointReferenceType' needs to be changed. If this is the correct
> namespace, then an appropriate 'import' tag should be added to
> 'file:/home/canal/Desktop/SnmpBROKERED/xml-resources/web-service-references/main/wsdl/localhost_8192/Broker/porttypedef.wsdl#types?schema4'.
>   line 357 of
> file:/home/canal/Desktop/SnmpBROKERED/xml-resources/web-service-references/main/wsdl/localhost_8192/Broker/porttypedef.wsdl#types?schema4
>
> [WARNING] src-resolve.4.2: Error resolving component
> 'wsrf-bf:BaseFaultType'. It was detected that 'wsrf-bf:BaseFaultType' is in
> namespace 'http://docs.oasis-open.org/wsrf/bf-2', but components from this
> namespace are not referenceable from schema document
> 'file:/home/canal/Desktop/SnmpBROKERED/xml-resources/web-service-references/main/wsdl/localhost_8192/Broker/porttypedef.wsdl#types?schema4'.
> If this is the incorrect namespace, perhaps the prefix of
> 'wsrf-bf:BaseFaultType' needs to be changed. If this is the correct
> namespace, then an appropriate 'import' tag should be added to
> 'file:/home/canal/Desktop/SnmpBROKERED/xml-resources/web-service-references/main/wsdl/localhost_8192/Broker/porttypedef.wsdl#types?schema4'.
>   line 471 of
> file:/home/canal/Desktop/SnmpBROKERED/xml-resources/web-service-references/main/wsdl/localhost_8192/Broker/porttypedef.wsdl#types?schema4
>
> [WARNING] src-resolve.4.2: Error resolving component 'wstop:TopicSet'. It
> was detected that 'wstop:TopicSet' is in namespace
> 'http://docs.oasis-open.org/wsn/t-1', but components from this namespace are
> not referenceable from schema document
> 'file:/home/canal/Desktop/SnmpBROKERED/xml-resources/web-service-references/main/wsdl/localhost_8192/Broker/porttypedef.wsdl#types?schema4'.
> If this is the incorrect namespace, perhaps the prefix of 'wstop:TopicSet'
> needs to be changed. If this is the correct namespace, then an appropriate
> 'import' tag should be added to
> 'file:/home/canal/Desktop/SnmpBROKERED/xml-resources/web-service-references/main/wsdl/localhost_8192/Broker/porttypedef.wsdl#types?schema4'.
>   line 351 of
> file:/home/canal/Desktop/SnmpBROKERED/xml-resources/web-service-references/main/wsdl/localhost_8192/Broker/porttypedef.wsdl#types?schema4
>
> [WARNING] src-resolve.4.2: Error resolving component
> 'wsa:EndpointReferenceType'. It was detected that
> 'wsa:EndpointReferenceType' is in namespace
> 'http://www.w3.org/2005/08/addressing', but components from this namespace
> are not referenceable from schema document
> 'file:/home/canal/Desktop/SnmpBROKERED/xml-resources/web-service-references/main/wsdl/localhost_8192/Broker/porttypedef.wsdl#types?schema3'.
> If this is the incorrect namespace, perhaps the prefix of
> 'wsa:EndpointReferenceType' needs to be changed. If this is the correct
> namespace, then an appropriate 'import' tag should be added to
> 'file:/home/canal/Desktop/SnmpBROKERED/xml-resources/web-service-references/main/wsdl/localhost_8192/Broker/porttypedef.wsdl#types?schema3'.
>   line 200 of
> file:/home/canal/Desktop/SnmpBROKERED/xml-resources/web-service-references/main/wsdl/localhost_8192/Broker/porttypedef.wsdl#types?schema3
>
> [WARNING] src-resolve.4.2: Error resolving component
> 'wsn-b:TopicExpressionType'. It was detected that
> 'wsn-b:TopicExpressionType' is in namespace
> 'http://docs.oasis-open.org/wsn/b-2', but components from this namespace are
> not referenceable from schema document
> 'file:/home/canal/Desktop/SnmpBROKERED/xml-resources/web-service-references/main/wsdl/localhost_8192/Broker/porttypedef.wsdl#types?schema3'.
> If this is the incorrect namespace, perhaps the prefix of
> 'wsn-b:TopicExpressionType' needs to be changed. If this is the correct
> namespace, then an appropriate 'import' tag should be added to
> 'file:/home/canal/Desktop/SnmpBROKERED/xml-resources/web-service-references/main/wsdl/localhost_8192/Broker/porttypedef.wsdl#types?schema3'.
>   line 202 of
> file:/home/canal/Desktop/SnmpBROKERED/xml-resources/web-service-references/main/wsdl/localhost_8192/Broker/porttypedef.wsdl#types?schema3
>
> [WARNING] src-resolve.4.2: Error resolving component
> 'wsrf-bf:BaseFaultType'. It was detected that 'wsrf-bf:BaseFaultType' is in
> namespace 'http://docs.oasis-open.org/wsrf/bf-2', but components from this
> namespace are not referenceable from schema document
> 'file:/home/canal/Desktop/SnmpBROKERED/xml-resources/web-service-references/main/wsdl/localhost_8192/Broker/porttypedef.wsdl#types?schema3'.
> If this is the incorrect namespace, perhaps the prefix of
> 'wsrf-bf:BaseFaultType' needs to be changed. If this is the correct
> namespace, then an appropriate 'import' tag should be added to
> 'file:/home/canal/Desktop/SnmpBROKERED/xml-resources/web-service-references/main/wsdl/localhost_8192/Broker/porttypedef.wsdl#types?schema3'.
>   line 261 of
> file:/home/canal/Desktop/SnmpBROKERED/xml-resources/web-service-references/main/wsdl/localhost_8192/Broker/porttypedef.wsdl#types?schema3
>
> [WARNING] src-resolve.4.2: Error resolving component 'wstop:TopicSet'. It
> was detected that 'wstop:TopicSet' is in namespace
> 'http://docs.oasis-open.org/wsn/t-1', but components from this namespace are
> not referenceable from schema document
> 'file:/home/canal/Desktop/SnmpBROKERED/xml-resources/web-service-references/main/wsdl/localhost_8192/Broker/porttypedef.wsdl#types?schema3'.
> If this is the incorrect namespace, perhaps the prefix of 'wstop:TopicSet'
> needs to be changed. If this is the correct namespace, then an appropriate
> 'import' tag should be added to
> 'file:/home/canal/Desktop/SnmpBROKERED/xml-resources/web-service-references/main/wsdl/localhost_8192/Broker/porttypedef.wsdl#types?schema3'.
>   line 212 of
> file:/home/canal/Desktop/SnmpBROKERED/xml-resources/web-service-references/main/wsdl/localhost_8192/Broker/porttypedef.wsdl#types?schema3
>
> [ERROR] A class/interface with the same name
> "org.servicemix.wsnotification.QueryExpressionType" is already in use. Use a
> class customization to resolve this conflict.
>   line 770 of
> file:/home/canal/Desktop/SnmpBROKERED/xml-resources/web-service-references/main/wsdl/localhost_8192/Broker/porttypedef.wsdl
>
> [ERROR] (Relevant to above error) another "QueryExpressionType" is generated
> from here.
>   line 312 of
> file:/home/canal/Desktop/SnmpBROKERED/xml-resources/web-service-references/main/wsdl/localhost_8192/Broker/porttypedef.wsdl
>
> [ERROR] Two declarations cause a collision in the ObjectFactory class.
>   line 770 of
> file:/home/canal/Desktop/SnmpBROKERED/xml-resources/web-service-references/main/wsdl/localhost_8192/Broker/porttypedef.wsdl
>
> [ERROR] (Related to above error) This is the other declaration.
>   line 312 of
> file:/home/canal/Desktop/SnmpBROKERED/xml-resources/web-service-references/main/wsdl/localhost_8192/Broker/porttypedef.wsdl
>
> [ERROR] Two declarations cause a collision in the ObjectFactory class.
>   line 377 of
> file:/home/canal/Desktop/SnmpBROKERED/xml-resources/web-service-references/main/wsdl/localhost_8192/Broker/porttypedef.wsdl
>
> [ERROR] (Related to above error) This is the other declaration.
>   line 202 of
> file:/home/canal/Desktop/SnmpBROKERED/xml-resources/web-service-references/main/wsdl/localhost_8192/Broker/porttypedef.wsdl
>
> [ERROR] Two declarations cause a collision in the ObjectFactory class.
>   line 204 of
> file:/home/canal/Desktop/SnmpBROKERED/xml-resources/web-service-references/main/wsdl/localhost_8192/Broker/porttypedef.wsdl
>
> [ERROR] (Related to above error) This is the other declaration.
>   line 362 of
> file:/home/canal/Desktop/SnmpBROKERED/xml-resources/web-service-references/main/wsdl/localhost_8192/Broker/porttypedef.wsdl
>
> [ERROR] Two declarations cause a collision in the ObjectFactory class.
>   line 201 of
> file:/home/canal/Desktop/SnmpBROKERED/xml-resources/web-service-references/main/wsdl/localhost_8192/Broker/porttypedef.wsdl
>
> [ERROR] (Related to above error) This is the other declaration.
>   line 357 of
> file:/home/canal/Desktop/SnmpBROKERED/xml-resources/web-service-references/main/wsdl/localhost_8192/Broker/porttypedef.wsdl
>
>
>
>
> ANT for AXIS2 output:
> init:
>
> pre.compile.test:
>      [echo] Stax Availability= true
>      [echo] Axis2 Availability= true
>
> compile.src:
>     [javac] Compiling 18 source files to
> /home/canal/Desktop/WbrokerADB/build/classes
>     [javac]
> /home/canal/Desktop/WbrokerADB/src/org/servicemix/wsnotification/Client.java:23:
> cannot find symbol
>     [javac] symbol  : class NotifyRequest
>     [javac] location: class org.servicemix.wsnotification.Client
>     [javac]             NotifyRequest req = new NotifyRequest();
>     [javac]             ^
>     [javac]
> /home/canal/Desktop/WbrokerADB/src/org/servicemix/wsnotification/Client.java:23:
> cannot find symbol
>     [javac] symbol  : class NotifyRequest
>     [javac] location: class org.servicemix.wsnotification.Client
>     [javac]             NotifyRequest req = new NotifyRequest();
>     [javac]                                     ^
>     [javac]
> /home/canal/Desktop/WbrokerADB/src/org/servicemix/wsnotification/NotificationBrokerStub.java:2937:
> fromString(javax.xml.stream.XMLStreamReader,java.lang.String) in
> org.servicemix.wsnotification.NotificationBrokerStub.MessageTypes_type0.Factory
> cannot be applied to (java.lang.String,java.lang.String)
>     [javac]
> MessageTypes_type0.Factory.fromString(tempAttribMessageTypes,namespaceuri));
>     [javac]
>
> ^
>     [javac]
> /home/canal/Desktop/WbrokerADB/src/org/servicemix/wsnotification/NotificationBrokerStub.java:2942:
> fromString(javax.xml.stream.XMLStreamReader,java.lang.String) in
> org.servicemix.wsnotification.NotificationBrokerStub.MessageTypes_type0.Factory
> cannot be applied to (java.lang.String,java.lang.String)
>     [javac]
> MessageTypes_type0.Factory.fromString(tempAttribMessageTypes,""));
>     [javac]
>
> ^
>     [javac]
> /home/canal/Desktop/WbrokerADB/src/org/servicemix/wsnotification/NotificationBrokerStub.java:31674:
> fromString(javax.xml.stream.XMLStreamReader,java.lang.String) in
> org.servicemix.wsnotification.NotificationBrokerStub.MessageTypes_type0.Factory
> cannot be applied to (java.lang.String,java.lang.String)
>     [javac]
> MessageTypes_type0.Factory.fromString(tempAttribMessageTypes,namespaceuri));
>     [javac]
>
> ^
>     [javac]
> /home/canal/Desktop/WbrokerADB/src/org/servicemix/wsnotification/NotificationBrokerStub.java:31679:
> fromString(javax.xml.stream.XMLStreamReader,java.lang.String) in
> org.servicemix.wsnotification.NotificationBrokerStub.MessageTypes_type0.Factory
> cannot be applied to (java.lang.String,java.lang.String)
>     [javac]
> MessageTypes_type0.Factory.fromString(tempAttribMessageTypes,""));
>     [javac]
>
> ^
>     [javac] Note:
> /home/canal/Desktop/WbrokerADB/src/org/servicemix/wsnotification/NotificationBrokerStub.java
> uses or overrides a deprecated API.
>     [javac] Note: Recompile with -Xlint:deprecation for details.
>     [javac] Note:
> /home/canal/Desktop/WbrokerADB/src/org/servicemix/wsnotification/NotificationBrokerStub.java
> uses unchecked or unsafe operations.
>     [javac] Note: Recompile with -Xlint:unchecked for details.
>     [javac] 6 errors
>
> BUILD FAILED
> /home/canal/Desktop/WbrokerADB/build.xml:43: Compile failed; see the
> compiler error output for details.
>
>
> --
> View this message in context:
> http://www.nabble.com/ServiceMix-WSN-Broker--access-from-MUSE-tf4639744s12049.html#a13292299
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>
>


-- 
Cheers,
Guillaume Nodet
------------------------
Blog: http://gnodet.blogspot.com/

Re: ServiceMix WSN-Broker access from MUSE

Posted by "alfredo.s.g_uam_spain" <al...@gmail.com>.
Using JAXWS in NetBeans  i get an error stating that something is duplicated.
Using AXIS2 ( wsdl2java.sh) it finishes generation but building i get an
error stating some functions does not receive the params needed.

There is nothing wrong with the service, so im doing something wrong during
code-generation, ¿what could it be?

thanks


JAXWS output:

[WARNING] src-resolve.4.2: Error resolving component
'wsrf-bf:BaseFaultType'. It was detected that 'wsrf-bf:BaseFaultType' is in
namespace 'http://docs.oasis-open.org/wsrf/bf-2', but components from this
namespace are not referenceable from schema document
'file:/home/canal/Desktop/SnmpBROKERED/xml-resources/web-service-references/main/wsdl/localhost_8192/Broker/porttypedef.wsdl#types?schema6'.
If this is the incorrect namespace, perhaps the prefix of
'wsrf-bf:BaseFaultType' needs to be changed. If this is the correct
namespace, then an appropriate 'import' tag should be added to
'file:/home/canal/Desktop/SnmpBROKERED/xml-resources/web-service-references/main/wsdl/localhost_8192/Broker/porttypedef.wsdl#types?schema6'.
  line 908 of
file:/home/canal/Desktop/SnmpBROKERED/xml-resources/web-service-references/main/wsdl/localhost_8192/Broker/porttypedef.wsdl#types?schema6

[WARNING] src-resolve.4.2: Error resolving component
'wsa:EndpointReferenceType'. It was detected that
'wsa:EndpointReferenceType' is in namespace
'http://www.w3.org/2005/08/addressing', but components from this namespace
are not referenceable from schema document
'file:/home/canal/Desktop/SnmpBROKERED/xml-resources/web-service-references/main/wsdl/localhost_8192/Broker/porttypedef.wsdl#types?schema2'.
If this is the incorrect namespace, perhaps the prefix of
'wsa:EndpointReferenceType' needs to be changed. If this is the correct
namespace, then an appropriate 'import' tag should be added to
'file:/home/canal/Desktop/SnmpBROKERED/xml-resources/web-service-references/main/wsdl/localhost_8192/Broker/porttypedef.wsdl#types?schema2'.
  line 153 of
file:/home/canal/Desktop/SnmpBROKERED/xml-resources/web-service-references/main/wsdl/localhost_8192/Broker/porttypedef.wsdl#types?schema2

[WARNING] src-resolve.4.2: Error resolving component 'xml:lang'. It was
detected that 'xml:lang' is in namespace
'http://www.w3.org/XML/1998/namespace', but components from this namespace
are not referenceable from schema document
'file:/home/canal/Desktop/SnmpBROKERED/xml-resources/web-service-references/main/wsdl/localhost_8192/Broker/porttypedef.wsdl#types?schema2'.
If this is the incorrect namespace, perhaps the prefix of 'xml:lang' needs
to be changed. If this is the correct namespace, then an appropriate
'import' tag should be added to
'file:/home/canal/Desktop/SnmpBROKERED/xml-resources/web-service-references/main/wsdl/localhost_8192/Broker/porttypedef.wsdl#types?schema2'.
  line 168 of
file:/home/canal/Desktop/SnmpBROKERED/xml-resources/web-service-references/main/wsdl/localhost_8192/Broker/porttypedef.wsdl#types?schema2

[WARNING] s4s-elt-invalid-content.1: The content of
'#AnonType_DescriptionBaseFaultType' is invalid.  Element 'attribute' is
invalid, misplaced, or occurs too often.
  line 168 of
file:/home/canal/Desktop/SnmpBROKERED/xml-resources/web-service-references/main/wsdl/localhost_8192/Broker/porttypedef.wsdl#types?schema2

[WARNING] src-resolve.4.2: Error resolving component
'wsa:EndpointReferenceType'. It was detected that
'wsa:EndpointReferenceType' is in namespace
'http://www.w3.org/2005/08/addressing', but components from this namespace
are not referenceable from schema document
'file:/home/canal/Desktop/SnmpBROKERED/xml-resources/web-service-references/main/wsdl/localhost_8192/Broker/porttypedef.wsdl#types?schema4'.
If this is the incorrect namespace, perhaps the prefix of
'wsa:EndpointReferenceType' needs to be changed. If this is the correct
namespace, then an appropriate 'import' tag should be added to
'file:/home/canal/Desktop/SnmpBROKERED/xml-resources/web-service-references/main/wsdl/localhost_8192/Broker/porttypedef.wsdl#types?schema4'.
  line 357 of
file:/home/canal/Desktop/SnmpBROKERED/xml-resources/web-service-references/main/wsdl/localhost_8192/Broker/porttypedef.wsdl#types?schema4

[WARNING] src-resolve.4.2: Error resolving component
'wsrf-bf:BaseFaultType'. It was detected that 'wsrf-bf:BaseFaultType' is in
namespace 'http://docs.oasis-open.org/wsrf/bf-2', but components from this
namespace are not referenceable from schema document
'file:/home/canal/Desktop/SnmpBROKERED/xml-resources/web-service-references/main/wsdl/localhost_8192/Broker/porttypedef.wsdl#types?schema4'.
If this is the incorrect namespace, perhaps the prefix of
'wsrf-bf:BaseFaultType' needs to be changed. If this is the correct
namespace, then an appropriate 'import' tag should be added to
'file:/home/canal/Desktop/SnmpBROKERED/xml-resources/web-service-references/main/wsdl/localhost_8192/Broker/porttypedef.wsdl#types?schema4'.
  line 471 of
file:/home/canal/Desktop/SnmpBROKERED/xml-resources/web-service-references/main/wsdl/localhost_8192/Broker/porttypedef.wsdl#types?schema4

[WARNING] src-resolve.4.2: Error resolving component 'wstop:TopicSet'. It
was detected that 'wstop:TopicSet' is in namespace
'http://docs.oasis-open.org/wsn/t-1', but components from this namespace are
not referenceable from schema document
'file:/home/canal/Desktop/SnmpBROKERED/xml-resources/web-service-references/main/wsdl/localhost_8192/Broker/porttypedef.wsdl#types?schema4'.
If this is the incorrect namespace, perhaps the prefix of 'wstop:TopicSet'
needs to be changed. If this is the correct namespace, then an appropriate
'import' tag should be added to
'file:/home/canal/Desktop/SnmpBROKERED/xml-resources/web-service-references/main/wsdl/localhost_8192/Broker/porttypedef.wsdl#types?schema4'.
  line 351 of
file:/home/canal/Desktop/SnmpBROKERED/xml-resources/web-service-references/main/wsdl/localhost_8192/Broker/porttypedef.wsdl#types?schema4

[WARNING] src-resolve.4.2: Error resolving component
'wsa:EndpointReferenceType'. It was detected that
'wsa:EndpointReferenceType' is in namespace
'http://www.w3.org/2005/08/addressing', but components from this namespace
are not referenceable from schema document
'file:/home/canal/Desktop/SnmpBROKERED/xml-resources/web-service-references/main/wsdl/localhost_8192/Broker/porttypedef.wsdl#types?schema3'.
If this is the incorrect namespace, perhaps the prefix of
'wsa:EndpointReferenceType' needs to be changed. If this is the correct
namespace, then an appropriate 'import' tag should be added to
'file:/home/canal/Desktop/SnmpBROKERED/xml-resources/web-service-references/main/wsdl/localhost_8192/Broker/porttypedef.wsdl#types?schema3'.
  line 200 of
file:/home/canal/Desktop/SnmpBROKERED/xml-resources/web-service-references/main/wsdl/localhost_8192/Broker/porttypedef.wsdl#types?schema3

[WARNING] src-resolve.4.2: Error resolving component
'wsn-b:TopicExpressionType'. It was detected that
'wsn-b:TopicExpressionType' is in namespace
'http://docs.oasis-open.org/wsn/b-2', but components from this namespace are
not referenceable from schema document
'file:/home/canal/Desktop/SnmpBROKERED/xml-resources/web-service-references/main/wsdl/localhost_8192/Broker/porttypedef.wsdl#types?schema3'.
If this is the incorrect namespace, perhaps the prefix of
'wsn-b:TopicExpressionType' needs to be changed. If this is the correct
namespace, then an appropriate 'import' tag should be added to
'file:/home/canal/Desktop/SnmpBROKERED/xml-resources/web-service-references/main/wsdl/localhost_8192/Broker/porttypedef.wsdl#types?schema3'.
  line 202 of
file:/home/canal/Desktop/SnmpBROKERED/xml-resources/web-service-references/main/wsdl/localhost_8192/Broker/porttypedef.wsdl#types?schema3

[WARNING] src-resolve.4.2: Error resolving component
'wsrf-bf:BaseFaultType'. It was detected that 'wsrf-bf:BaseFaultType' is in
namespace 'http://docs.oasis-open.org/wsrf/bf-2', but components from this
namespace are not referenceable from schema document
'file:/home/canal/Desktop/SnmpBROKERED/xml-resources/web-service-references/main/wsdl/localhost_8192/Broker/porttypedef.wsdl#types?schema3'.
If this is the incorrect namespace, perhaps the prefix of
'wsrf-bf:BaseFaultType' needs to be changed. If this is the correct
namespace, then an appropriate 'import' tag should be added to
'file:/home/canal/Desktop/SnmpBROKERED/xml-resources/web-service-references/main/wsdl/localhost_8192/Broker/porttypedef.wsdl#types?schema3'.
  line 261 of
file:/home/canal/Desktop/SnmpBROKERED/xml-resources/web-service-references/main/wsdl/localhost_8192/Broker/porttypedef.wsdl#types?schema3

[WARNING] src-resolve.4.2: Error resolving component 'wstop:TopicSet'. It
was detected that 'wstop:TopicSet' is in namespace
'http://docs.oasis-open.org/wsn/t-1', but components from this namespace are
not referenceable from schema document
'file:/home/canal/Desktop/SnmpBROKERED/xml-resources/web-service-references/main/wsdl/localhost_8192/Broker/porttypedef.wsdl#types?schema3'.
If this is the incorrect namespace, perhaps the prefix of 'wstop:TopicSet'
needs to be changed. If this is the correct namespace, then an appropriate
'import' tag should be added to
'file:/home/canal/Desktop/SnmpBROKERED/xml-resources/web-service-references/main/wsdl/localhost_8192/Broker/porttypedef.wsdl#types?schema3'.
  line 212 of
file:/home/canal/Desktop/SnmpBROKERED/xml-resources/web-service-references/main/wsdl/localhost_8192/Broker/porttypedef.wsdl#types?schema3

[ERROR] A class/interface with the same name
"org.servicemix.wsnotification.QueryExpressionType" is already in use. Use a
class customization to resolve this conflict.
  line 770 of
file:/home/canal/Desktop/SnmpBROKERED/xml-resources/web-service-references/main/wsdl/localhost_8192/Broker/porttypedef.wsdl

[ERROR] (Relevant to above error) another "QueryExpressionType" is generated
from here.
  line 312 of
file:/home/canal/Desktop/SnmpBROKERED/xml-resources/web-service-references/main/wsdl/localhost_8192/Broker/porttypedef.wsdl

[ERROR] Two declarations cause a collision in the ObjectFactory class.
  line 770 of
file:/home/canal/Desktop/SnmpBROKERED/xml-resources/web-service-references/main/wsdl/localhost_8192/Broker/porttypedef.wsdl

[ERROR] (Related to above error) This is the other declaration.   
  line 312 of
file:/home/canal/Desktop/SnmpBROKERED/xml-resources/web-service-references/main/wsdl/localhost_8192/Broker/porttypedef.wsdl

[ERROR] Two declarations cause a collision in the ObjectFactory class.
  line 377 of
file:/home/canal/Desktop/SnmpBROKERED/xml-resources/web-service-references/main/wsdl/localhost_8192/Broker/porttypedef.wsdl

[ERROR] (Related to above error) This is the other declaration.   
  line 202 of
file:/home/canal/Desktop/SnmpBROKERED/xml-resources/web-service-references/main/wsdl/localhost_8192/Broker/porttypedef.wsdl

[ERROR] Two declarations cause a collision in the ObjectFactory class.
  line 204 of
file:/home/canal/Desktop/SnmpBROKERED/xml-resources/web-service-references/main/wsdl/localhost_8192/Broker/porttypedef.wsdl

[ERROR] (Related to above error) This is the other declaration.   
  line 362 of
file:/home/canal/Desktop/SnmpBROKERED/xml-resources/web-service-references/main/wsdl/localhost_8192/Broker/porttypedef.wsdl

[ERROR] Two declarations cause a collision in the ObjectFactory class.
  line 201 of
file:/home/canal/Desktop/SnmpBROKERED/xml-resources/web-service-references/main/wsdl/localhost_8192/Broker/porttypedef.wsdl

[ERROR] (Related to above error) This is the other declaration.   
  line 357 of
file:/home/canal/Desktop/SnmpBROKERED/xml-resources/web-service-references/main/wsdl/localhost_8192/Broker/porttypedef.wsdl




ANT for AXIS2 output:
init:

pre.compile.test:
     [echo] Stax Availability= true
     [echo] Axis2 Availability= true

compile.src:
    [javac] Compiling 18 source files to
/home/canal/Desktop/WbrokerADB/build/classes
    [javac]
/home/canal/Desktop/WbrokerADB/src/org/servicemix/wsnotification/Client.java:23:
cannot find symbol
    [javac] symbol  : class NotifyRequest
    [javac] location: class org.servicemix.wsnotification.Client
    [javac]             NotifyRequest req = new NotifyRequest();
    [javac]             ^
    [javac]
/home/canal/Desktop/WbrokerADB/src/org/servicemix/wsnotification/Client.java:23:
cannot find symbol
    [javac] symbol  : class NotifyRequest
    [javac] location: class org.servicemix.wsnotification.Client
    [javac]             NotifyRequest req = new NotifyRequest();
    [javac]                                     ^
    [javac]
/home/canal/Desktop/WbrokerADB/src/org/servicemix/wsnotification/NotificationBrokerStub.java:2937:
fromString(javax.xml.stream.XMLStreamReader,java.lang.String) in
org.servicemix.wsnotification.NotificationBrokerStub.MessageTypes_type0.Factory
cannot be applied to (java.lang.String,java.lang.String)
    [javac]                                                        
MessageTypes_type0.Factory.fromString(tempAttribMessageTypes,namespaceuri));
    [javac]                                                                                  
^
    [javac]
/home/canal/Desktop/WbrokerADB/src/org/servicemix/wsnotification/NotificationBrokerStub.java:2942:
fromString(javax.xml.stream.XMLStreamReader,java.lang.String) in
org.servicemix.wsnotification.NotificationBrokerStub.MessageTypes_type0.Factory
cannot be applied to (java.lang.String,java.lang.String)
    [javac]                                                        
MessageTypes_type0.Factory.fromString(tempAttribMessageTypes,""));
    [javac]                                                                                  
^
    [javac]
/home/canal/Desktop/WbrokerADB/src/org/servicemix/wsnotification/NotificationBrokerStub.java:31674:
fromString(javax.xml.stream.XMLStreamReader,java.lang.String) in
org.servicemix.wsnotification.NotificationBrokerStub.MessageTypes_type0.Factory
cannot be applied to (java.lang.String,java.lang.String)
    [javac]                                                        
MessageTypes_type0.Factory.fromString(tempAttribMessageTypes,namespaceuri));
    [javac]                                                                                  
^
    [javac]
/home/canal/Desktop/WbrokerADB/src/org/servicemix/wsnotification/NotificationBrokerStub.java:31679:
fromString(javax.xml.stream.XMLStreamReader,java.lang.String) in
org.servicemix.wsnotification.NotificationBrokerStub.MessageTypes_type0.Factory
cannot be applied to (java.lang.String,java.lang.String)
    [javac]                                                        
MessageTypes_type0.Factory.fromString(tempAttribMessageTypes,""));
    [javac]                                                                                  
^
    [javac] Note:
/home/canal/Desktop/WbrokerADB/src/org/servicemix/wsnotification/NotificationBrokerStub.java
uses or overrides a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] Note:
/home/canal/Desktop/WbrokerADB/src/org/servicemix/wsnotification/NotificationBrokerStub.java
uses unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
    [javac] 6 errors

BUILD FAILED
/home/canal/Desktop/WbrokerADB/build.xml:43: Compile failed; see the
compiler error output for details.


-- 
View this message in context: http://www.nabble.com/ServiceMix-WSN-Broker--access-from-MUSE-tf4639744s12049.html#a13292299
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: ServiceMix WSN-Broker access from MUSE

Posted by Guillaume Nodet <gn...@gmail.com>.
ServiceMix does not provide any prebuilt jaxws cient, but you should
be able to easily generate one from the wsdl exposed by
servicemix-http, using either cxf, jaxws ri or axis2.  You should then
be able to follow the examples that are available on the web site (see
http://incubator.apache.org/servicemix/example-scenario.html)

On 10/17/07, alfredo.s.g_uam_spain <al...@gmail.com> wrote:
>
> 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 <al...@gmail.com> 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: &lt;?xml version="1.0"
> >> encoding="UTF-8"?&gt;&lt;wsnt:Notify
> >> xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2"
> >> xmlns:soap="http://www.w3.org/2003/05/soap-envelope"&gt;
> >>      [java]             &lt;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"&gt;
> >>      [java]                 &lt;wsnt:Topic xmlns:notif="snmp.alfredo"
> >> Dialect="http://docs.oasis-open.org/wsn/t-1/TopicExpression/Concrete"&gt;notif:SNMP&lt;/wsnt:Topic&gt;
> >>      [java]                 &lt;wsnt:ProducerReference&gt;
> >>      [java]                     &lt;wsa:Address
> >> xmlns:wsa="http://www.w3.org/2005/08/addressing"&gt;http://www.w3.org/2005/08/addressing/role/anonymous&lt;/wsa:Address&gt;
> >>      [java]                 &lt;/wsnt:ProducerReference&gt;
> >>      [java]                 &lt;wsnt:Message&gt;
> >>      [java]                     &lt;msg:MyMessage
> >> xmlns:msg="snmp.alfredo"&gt;Index = 0: 1.3.6.1.2.1.1.1.0 = Linux xxxxx#2
> >> SMP
> >> Sun Sep 23 22:56:28 UTC 2007 i686&lt;/msg:MyMessage&gt;
> >>      [java]                 &lt;/wsnt:Message&gt;
> >>      [java]             &lt;/wsnt:NotificationMessage&gt;
> >>      [java]         &lt;/wsnt:Notify&gt;
> >>      [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.
>
>


-- 
Cheers,
Guillaume Nodet
------------------------
Blog: http://gnodet.blogspot.com/

Re: ServiceMix WSN-Broker access from MUSE

Posted by "alfredo.s.g_uam_spain" <al...@gmail.com>.
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 <al...@gmail.com> 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: &lt;?xml version="1.0"
>> encoding="UTF-8"?&gt;&lt;wsnt:Notify
>> xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2"
>> xmlns:soap="http://www.w3.org/2003/05/soap-envelope"&gt;
>>      [java]             &lt;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"&gt;
>>      [java]                 &lt;wsnt:Topic xmlns:notif="snmp.alfredo"
>> Dialect="http://docs.oasis-open.org/wsn/t-1/TopicExpression/Concrete"&gt;notif:SNMP&lt;/wsnt:Topic&gt;
>>      [java]                 &lt;wsnt:ProducerReference&gt;
>>      [java]                     &lt;wsa:Address
>> xmlns:wsa="http://www.w3.org/2005/08/addressing"&gt;http://www.w3.org/2005/08/addressing/role/anonymous&lt;/wsa:Address&gt;
>>      [java]                 &lt;/wsnt:ProducerReference&gt;
>>      [java]                 &lt;wsnt:Message&gt;
>>      [java]                     &lt;msg:MyMessage
>> xmlns:msg="snmp.alfredo"&gt;Index = 0: 1.3.6.1.2.1.1.1.0 = Linux xxxxx#2
>> SMP
>> Sun Sep 23 22:56:28 UTC 2007 i686&lt;/msg:MyMessage&gt;
>>      [java]                 &lt;/wsnt:Message&gt;
>>      [java]             &lt;/wsnt:NotificationMessage&gt;
>>      [java]         &lt;/wsnt:Notify&gt;
>>      [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.