|
View:
New views
1 Messages
—
Rating Filter:
Alert me
|
|
|
Problem in WS-Notification in PetalsHi,
I am trying to use WS-Notification in Petals. To do so, I did the following (as indicated in the Petals-bc-soap document): - I created (provided) and endpoint in Topic mode with name "TopicSample" No problem so far, since I can see the Topic in the BC-Soap topic list - I tried to register a WS (in order to get notified of the messages sent to the topic endpiont) by sending a SOAP message. However, it does not seem to work, since the Subscriber list in the BC component subscriber list is empty. If I try to send a message to the topic endpoint I get the following error: Code: [Petals.Container.Components.petals-bc-channelclient] The exchange 'petals:uid:8771E18FE674C9BA2D338880013635813' refers to an unknown consumer on the component : petals-bc-channelclient javax.jbi.messaging.MessagingException: The exchange 'petals:uid:8771E18FE674C9BA2D338880013635813' refers to an unknown consumer on the component : petals-bc-channelclient at org.ow2.petals.component.framework.listener.MessageExchangeProcessor.process(MessageExchangeProcessor.java:276) at org.ow2.petals.component.framework.listener.MessageExchangeProcessor.run(MessageExchangeProcessor.java:151) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Here below you could find the soap message I use in SOAPUi (I send the message to http://localhost:8084/wsn/producer) to try to create the subscription. Any ideas on how should I proceed , or any other methods in order to subscribe a WSDL endpoint to a Topic? Does the WSDL file need to have a specific format/methods? Thanks in advance Code: <?xml version="1.0" encoding="UTF-8"?> <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://localhost:12345/mockAlarmServiceEndpoint </wsa:To> <wsa:Action xmlns:wsa="http://www.w3.org/2005/08/addressing"> http://docs.oasis-open.org/wsn/bw-2/NotificationProducer/SubscribeRequest </wsa:Action> <wsa:MessageID xmlns:wsa="http://www.w3.org/2005/08/addressing"> uuid:9888fa43-281f-ea0f-ec21-09e9119366c6 </wsa:MessageID> <wsa:From xmlns:wsa="http://www.w3.org/2005/08/addressing"> <wsa:Address>http://www.w3.org/2005/08/addressing/role/anonymous</wsa:Address> </wsa:From> </soap:Header> <soap:Body> <wsnt:Subscribe xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2"> <wsnt:ConsumerReference> <wsa:Address xmlns:wsa="http://www.w3.org/2005/08/addressing"> http://localhost:12345/mockAlarmServiceEndpoint </wsa:Address> </wsnt:ConsumerReference> <wsnt:Filter> <wsnt:TopicExpression Dialect="xsd:anyURI">TopicSample</wsnt:TopicExpression> </wsnt:Filter> </wsnt:Subscribe> </soap:Body> </soap:Envelope> |
| Free embeddable forum powered by Nabble | Forum Help |