two way webservice communication REST
two way webservice communication REST
G'day folks, So I have an application in mind with a client-server architecture where multiple clients are connected to a web service. The webservice needs to be able to call or send messages to all or some of the clients. I have previously done the same using SOAP based services in WCF but now I am working with java and wish to avoid SOAP. I have been experimenting with Server Sent Events in reactive framework in Spring framework but have been mostly unlucky.
Is there a way to implement two way communication without explicitly exposing a webservice or such on the client? thanks a bunch :)
1 Answer
1
Try WebSockets for two-way communication and simple Restful for request-response communication.
Here is a simple guide: http://www.baeldung.com/java-websockets
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.