On 2/1/07, jmdev <[EMAIL PROTECTED]> wrote:

I was able to successfully subscribe to notifications using a client external
to the ESB.  I received the notifications leveraging a servlet at the
address specified in the ConsumerReference section of the Subscribe request.
Instead of a servlet however, I would like to receive the notifications at
an external web service.

1) I thought this would be possible by creating a subscribe request as so
(based on my limited knowledge of WS-Addressing):

<ns3:ConsumerReference>
<ns2:Address>http://localhost:8080/MyConsumer</ns2:Address>
<ns2:PortType>EchoPortType</ns2:PortType>
<ns2:ServiceName>EchoService</ns2:ServiceName>
</ns3:ConsumerReference>

However, I receive 500 errors every time ServiceMix attempts to send the
notification.  What should the subscribe request look like in order to have
notifications sent to the web service?

See 
http://cwiki.apache.org/confluence/display/SM/servicemix-wsn2005#servicemix-wsn2005-Subscribe
You can find informations on the URI at
http://incubator.apache.org/servicemix/uris.html


2) Assuming I can do what I am looking to do in question 1, if I want to
simply dump the notification message to the console what would my simple web
service look like?  I am using XFire to generate the Web Service based on a
POJO, so even the POJO snippet would be helpful.

You can first target a TraceComponent.
Then use an HTTP BC (with or without soap) to send the request to an external
service.  On the other side, you need to implement the needed PortType,
which is NotificationConsumer iirc.

If you can write some notes and share them so that we can
enhance the documentation, that would be nice :-)


Thanks!
--
View this message in context: 
http://www.nabble.com/WS-Notification-and-External-Subscribers-tf3155714s12049.html#a8750856
Sent from the ServiceMix - User mailing list archive at Nabble.com.




--
Cheers,
Guillaume Nodet
------------------------
Architect, LogicBlaze (http://www.logicblaze.com/)
Blog: http://gnodet.blogspot.com/

Reply via email to