[prev in list] [next in list] [prev in thread] [next in thread] 

List:       muse-user
Subject:    Re: Transport my own data types  from wsn-producer to wsn-consumer
From:       Lenni Madsen <l.madsen () mil ! dk>
Date:       2009-05-23 12:16:13
Message-ID: 9994C177-B144-4138-8F53-35B12388DBFD () mil ! dk
[Download RAW message or body]

just for references sake did you remember to subscribe the consumer to  
the producer?

On 21/05/2009, at 09.59, ciel <370334232@qq.com> wrote:

> 
> ok,thanks very much.
> when I indroduced your code in wsn-producer, it produced:
> 
> *******************************************************
> 2009-5-21 15:27:50 org.apache.ws.muse.test.wsrf.MyCapabilityImpl$1 run
> 信息: Sending message to consumers...
> [CLIENT TRACE] SOAP envelope contents (outgoing):
> 
> <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
> <soap:Header>
> <wsa:To
> xmlns:wsa="http://www.w3.org/2005/08/addressing">http://192.168.
> 6.251:8080/wsn-consumer/services/consumer</wsa:To>
> <wsa:Action
> xmlns:wsa="http://www.w3.org/2005/08/addressing">http://docs
> .oasis-open.org/wsn/bw-2/NotificationConsumer/NotifyRequest</ 
> wsa:Action>
> <wsa:MessageID
> xmlns:wsa="http://www.w3.org/2005/08/addressing">uuid:a6a
> c392c-e6b8-2cbc-895d-c04201eba23a</wsa:MessageID>
> <wsa:From xmlns:wsa="http://www.w3.org/2005/08/addressing">
> <wsa:ReferenceParameters
> xmlns:wsa="http://www.w3.org/2005/08/addres
> sing"/>
> 
> <wsa:Address>http://localhost:8080/wsn-producer/services/WsResource<
> /wsa:Address>
> </wsa:From>
> </soap:Header>
> <soap:Body>
> <wsnt:Notify xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2">
> <wsnt:NotificationMessage xmlns:=""
> xmlns:muse-wsa="http://ws.apache.org/muse/addressing"
> xmlns:muws1="http://docs.oasis-open.org/wsdm/muws1-2.xsd 
> "
> xmlns:muws2="http://docs.oasis-open.org/wsdm/muws2-2.xsd 
> "
> xmlns:wsa="http://www.w3.org/2005/08/addressing"
> xmlns:wsnt="htt
> p://docs.oasis-open.org/wsn/b-2">
> <wsnt:SubscriptionReference>
> <wsa:Address
> xmlns:wsa="http://www.w3.org/2005/08/addressing
> ">http://localhost:8080/wsn-producer/services/SubscriptionManager</ 
> wsa:Address>
> <wsa:ReferenceParameters
> xmlns:wsa="http://www.w3.org/2005/0
> 8/addressing">
> <muse-wsa:ResourceId
> xmlns:muse-wsa="http://ws.apache.or
> g/muse/addressing">MuseResource-1</muse-wsa:ResourceId>
> </wsa:ReferenceParameters>
> </wsnt:SubscriptionReference>
> <wsnt:Topic
> 
> Dialect="http://docs.oasis-open.org/wsn/t-1/TopicExpression/
> Concrete"
> xmlns:tns="http://ws.apache.org/muse/test/wsrf">tns:MyTopic</wsnt:Topi
> c>
> <wsnt:ProducerReference>
> <wsa:ReferenceParameters
> xmlns:wsa="http://www.w3.org/2005/0
> 8/addressing"/>
> <wsa:Address
> xmlns:wsa="http://www.w3.org/2005/08/addressing
> ">http://localhost:8080/wsn-producer/services/WsResource</wsa:Address>
> </wsnt:ProducerReference>
> <wsnt:Message>
> <muws1:ManagementEvent
> 
> xmlns:muws1="http://docs.oasis-open.org/wsdm/muws1-2.xsd
> " ReportTime="2009-05-21T15:27:04+08:00">
> 
> <muws1:EventId>uuid:ddeac1a5-5dcf-67fc-e17f-d71afce0fa5b
> </muws1:EventId>
> <muws1:SourceComponent>
> <muws1:ComponentAddress>
> <wsa:EndpointReference
> xmlns:wsa="http://www.w3.
> org/2005/08/addressing">
> <wsa:ReferenceParameters
> xmlns:wsa="http://w
> ww.w3.org/2005/08/addressing"/>
> 
> <wsa:Address>http://localhost:8080/wsn-produ
> cer/services/WsResource</wsa:Address>
> </wsa:EndpointReference>
> </muws1:ComponentAddress>
> </muws1:SourceComponent>
> <muws1:ReporterComponent>
> <muws1:ComponentAddress>
> <wsa:EndpointReference
> xmlns:wsa="http://www.w3.
> org/2005/08/addressing">
> <wsa:ReferenceParameters
> xmlns:wsa="http://w
> ww.w3.org/2005/08/addressing"/>
> 
> <wsa:Address>http://localhost:8080/wsn-produ
> cer/services/WsResource</wsa:Address>
> </wsa:EndpointReference>
> </muws1:ComponentAddress>
> </muws1:ReporterComponent>
> <muws2:Situation
> xmlns:muws2="http://docs.oasis-open.org
> /wsdm/muws2-2.xsd">
> <muws2:SituationCategory>
> <muws2:AvailabilitySituation/>
> </muws2:SituationCategory>
> 
> <muws2:SituationTime>2009-05-21T15:27:04+08:00</muws
> 2:SituationTime>
> <muws2:Priority>70</muws2:Priority>
> <muws2:Message>Something important has  
> happened
> in t
> he muse-test.apache.org!</muws2:Message>
> </muws2:Situation>
> <shipmentCheckResultInfo
> 
> xmlns="http://localhost:8080/ShipmentTrackService.xs
> d"
> 
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance
> " xsi:schemaLocation="http://localhost:8080/ShipmentTrackService.xsd
> ShipmentTra
> <muws1:ReporterComponent>
> <muws1:ComponentAddress>
> <wsa:EndpointReference
> xmlns:wsa="http://www.w3.
> org/2005/08/addressing">
> 
> <wsa:Address>http://localhost:8080/wsn-produ
> cer/services/WsResource</wsa:Address>
> </wsa:EndpointReference>
> </muws1:ComponentAddress>
> </muws1:ReporterComponent>
> <muws2:Situation
> xmlns:muws2="http://docs.oasis-open.org
> /wsdm/muws2-2.xsd">
> <muws2:SituationCategory>
> <muws2:AvailabilitySituation/>
> </muws2:SituationCategory>
> 
> <muws2:SituationTime>2009-05-21T15:27:04+08:00</muws
> 2:SituationTime>
> <muws2:Priority>70</muws2:Priority>
> <muws2:Message>Something important has  
> happened
> in t
> he muse-test.apache.org!</muws2:Message>
> </muws2:Situation>
> <shipmentCheckResultInfo
> 
> xmlns="http://localhost:8080/ShipmentTrackService.xs
> d"
> 
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance
> " xsi:schemaLocation="http://localhost:8080/ShipmentTrackService.xsd
> ShipmentTra
> ckService.xsd">
> <shipmentID>123</shipmentID>
> <shipmentOwner>bincan</shipmentOwner>
> <shipmentCheckResult>true</ 
> shipmentCheckResult>
> </shipmentCheckResultInfo>
> </muws1:ManagementEvent>
> </wsnt:Message>
> </wsnt:NotificationMessage>
> </wsnt:Notify>
> </soap:Body>
> </soap:Envelope>
> 
> [Fatal Error] :5:184: The element type "HR" must be terminated by the
> matching e
> nd-tag "</HR>".
> 2009-5-21 15:31:06 org.apache.muse.util.LoggingUtils logError
> 信息: There was an error while processing a request:
> 
> The element type "HR" must be terminated by the matching end-tag "</ 
> HR>".
> 
> 
> org. 
> apache.muse.core.AbstractResourceClient.invoke(AbstractResourceClien
> t.java:298)
> 
> org. 
> apache.muse.core.AbstractResourceClient.invoke(AbstractResourceClien
> t.java:254)
> 
> org. 
> apache.muse.ws.notification.remote.NotificationConsumerClient.notify
> (NotificationConsumerClient.java:99)
> 
> org. 
> apache.muse.ws.notification.impl.SimpleSubscriptionManager.publish(S
> impleSubscriptionManager.java:267)
> 
> org. 
> apache.muse.ws.notification.impl.SimpleNotificationProducer.publish(
> SimpleNotificationProducer.java:445)
> 
> org. 
> apache.muse.ws.notification.impl.SimpleNotificationProducer.publish(
> SimpleNotificationProducer.java:473)
> 
> org. 
> apache.muse.ws.notification.impl.SimpleNotificationProducer.publish(
> SimpleNotificationProducer.java:462)
> org.apache.ws.muse.test.wsrf.MyCapabilityImpl$1.run(Unknown  
> Source)
> 
> ------------------------------------------
> 
> 2009-5-21 15:31:21
> org.apache.muse.ws.notification.impl.SimpleSubscriptionManage
> r publish
> 信息: [ID = 'LastPublishFailed'] The last notification published via
> wsnt:Notify
> failed to reach its destination. The consumer may be unavailable. The
> original
> error was: The element type "HR" must be terminated by the matching  
> end-tag
> "</H
> R>".
> 2009-5-21 15:31:21 org.apache.ws.muse.test.wsrf.MyCapabilityImpl$1 run
> 信息: Waiting 10 seconds before sending message...
> ******************************************************************
> 
> and at wsn-consumer, it produced
> 
> *******************************************************************
> [Fatal Error] :14:45: Element or attribute do not match QName  
> production:
> QName:
> > =(NCName':')?NCName.
> *******************************************************************
> 
> What should I do? Modify wsn-consumer's code? And if,
> -- 
> View this message in context: \
> http://www.nabble.com/Transport-my-own-data-types--form-wsn-producer-to-wsn-consumer-tp23631392p23649285.html
>  Sent from the Muse User mailing list archive at Nabble.com.
> 


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic