WS-Eventing Application
It took me half of today to implement a WS-Eventing based service, together with service control application and demonstration client.
I took Plumbwork.Orange implementation of WS-Eventing stack. It includes WSE 2.0 based implementation of WS-Eventing specification, written by John Bristowe. Latest post about updates can be found here.
How it works
Windows service queries message queue (MSMQ) after the period elapses. If it finds any messages, they are dispatched to all registered clients.
There is a service control application, which can enroll new messages into the queue.
There's also a simple client which you can use to register and receive notifications.
Availability
You can download the bits from here:
- Installer package for WS-Eventing windows service, which does registrations and sends notifications back. Grab it here. Source is available here.
- Source code, which you can use to compile the service control application. Grab it here.
- Source code, which you can use to compile the WS-Eventing client. Grab it here.
Do the following:
- Install WS-Eventing service.
- Update WSEventingService.exe.config with desired endpoint address, MSMQ query period and queue name
- Give LOCAL SERVICE account permissions to write/modify the c:\ directory. By default Plumbwork.Orange.Eventing.dll will write subscriptions file (called subscriptions.xml) there.
- Start the service using SCM (Service Control Manager). Service will automatically create the specified queue. Note: You should have Message Queuing installed.
- Start the service control application.
- Start the client. It will register automatically.
- Send notification using the service control application and watch it emerge on the client side.
If you get into trouble, please email me. Have fun!