Asynchronous web service SOAP

后端 未结 3 1500
长情又很酷
长情又很酷 2021-01-21 08:11

I have an interface that I\'ve exposed as a regular SOAP web service. One method of the interface consists for the client to send a file to the server, then the server processes

3条回答
  •  自闭症患者
    2021-01-21 08:44

    You can use Callback approach of Asynchronous InvocationModel.

    Callback approach - in this case, to invoke the remote operation, you call another special method that takes a reference to a callback object (of javax.xml.ws.AsyncHandler type) as one of its parameters. Whenever the response message arrives at the client, the CXF runtime calls back on the AsyncHandler object to give it the contents of the response message

    More information can be had from the following:

    Apache CXF

提交回复
热议问题