search

Home  >  Q&A  >  body text

java - webservice服务端有什么方法可以请求客户端吗

项目需求是:采用webservice。客户端将传参至服务端,服务端响应通知,告知接收成功,并对参数进行处理后。。随后需要对客户端进行通知,告知处理成功,客户端响应通知。
但是查找了好久都没有发现有什么方式可以实现webservice服务端请求或再次通知客户端的方法,请问有没有什么解决方案呢?

天蓬老师天蓬老师2802 days ago573

reply all(2)I'll reply

  • PHPz

    PHPz2017-04-18 10:51:06

    No, webservice is based on http. The correct posture is that the client initiates a request, the server processes the request, and returns the result to the client after the processing is completed. You need to follow the basic http protocol.

    The parameter transfer must be successful, and the server does not need to return to accept the success

    reply
    0
  • PHPz

    PHPz2017-04-18 10:51:06

    You can try client-side ajax polling or websocket

    reply
    0
  • Cancelreply