Skip to content
POC with SOAP and WebSockets with Play!
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.

A simple WebSockets + SOAP POC


Based on SOAP sample provided by Marc Deschamps, I just added the WebSocket stuff to display SOAP requests in the browser when the service is called.


You can use SOAPUI and the sample project located in the test folder (MyService-wsdl-soapui-project.xml) to invoke services and see what happens on http://localhost:9000.


WebSocket and Play rocks! You can build really good stuff in less than 100 lines of code...


The only problem is a conception one where you can loose messages if you launch several clients at the same time. Since the event stream can not really be shared between clients, some messages can be lost. What is amazing is that it works in some cases: To reproduce, open two browser windows on http://localhost:9000 and launch the SOAPUI Load Test. This light load test sends 60 requests using two threads. At the end of the test, some messages are not displayed in the browser (have a look to the counter of the last message which should be equal to '59'). A simple solution will be to create stream per client with some client ID for example: Not my goal for now.



Christophe H.

Something went wrong with that request. Please try again.