简体   繁体   中英

How to notify clients (Java,C#) using a WSDL based Webservice

I have to implement a webservice which will be used by different clients written using several languages (eg Java,C#) and frameworks.

Because of this i decided to use JAX-WS and the Apache CXF Framework to create an WSDL first webservice.

Now my problem is that the webservice has to notify all clients whenever the user performed certain actions on one of them (like adding an element to the database).

After some research I found that the technique of long-polling might help me to get this task done. However I'm not sure that this is the best solution and that this one will work on all target plattforms.

Is the technique of long-polling suited in a Webservice (WSDL) context or is there another method widely used and supported?

长轮询或Comet技术最适合这种情况,Web服务是无状态的,并且不支持在不对托管服务(例如IIS,Apache等)进行大量修改的情况下将数据推送到客户端。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM