I do have a major problem with HTTP binding for wsn2005. I'm a ServiceMix
newbie, but I'm already familiar with WS-Notification.

The scenario:

I run the wsn-http-binding example. It provides bindings for a single
NotificationBroker and a CreatePullPoint endpoint. I implemented a simple
WSN client build upon XFire, WSN Java stubs provided by ServiceMix
(generated using XFire wsgen) and a Jetty WebServer instance. An external
NotificationConsumer is deployed. I'm able to send notifications to the
broker and use the ServiceMix broker to subscribe my external consumer to
receive notifications. Those SOAP bindings are working fine. Unfortunately
sending notifications back to my consumer fails. The scenario is similiar to
the one below (the figure does not include any information on format of the
message (SOAP or not), binding, etc.):

Notification Consumer -> (Subscribe) -> /ServiceMix/ WSN Broker -> (create)
-> /ServiceMix/  Subscription Manager

Producer -> (Notify)  -> /ServiceMix WSN/ Broker -> /ServiceMix/ 
Subscription Manager -> (Notify) -> Notification Consumer

The Subscription Manager resolves my external Notification Consumer WS
endpoint fine and tries to send the message. Unfortunately there's no http
binding attached and the message is a raw Notification (normalized ?), it is
not wrapped into a SOAP envelope. Of course my client (Notification
Consumer) based on XFire fails to receive the message. 

The question is: is it possible to attach a http binding to the ServiceMix 
Subscription Manager ? I'm not a ServiceMix expert, but I haven't found any
means to add such a binding. I've already investigated the ServiceMix
source. For every successful subscribe request a seperate Subscription
Manager  is created. What is more, inside ServiceMix the Subscription
Manager receives WSN notifications from JMS and then forwards them to the
subscriber. 

Any hints, comments, etc. are welcome.

Regards,
  Bartek
-- 
View this message in context: 
http://www.nabble.com/WSN2005---SOAP---a-full-featured-external-WSN-client-tf4810818s12049.html#a13764611
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to