Asynchronous web service SOAP

后端 未结 3 1501
长情又很酷
长情又很酷 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:25

    If you use some tool like WSDL2Java for client generation, you can even choose to generate an asynchronous client. It will generate for you a callback handler with empty methods for each of the service operations and exceptions of the service. You then can just implement those methods to set the actions to do when the response is received. Remember that when an asynchronous call is done a new thread is started.

提交回复
热议问题