本文发表在 rolia.net 枫下论坛Details:
The application should provide the following functionality:
· Allow the user to submit either a Synchronous Mode or an Asynchronous Mode request to the web service.
· For a Synchronous Mode request, immediately display the result of the web service’s processing.
· For an Asynchronous Mode request, immediately return an indication to the user that the request has been submitted. The user must then have some means of querying the web service to determine if the request has completed yet or not. Once the request has completed, the user must be able to retrieve the results of the request.
The web service itself can do whatever you like. For example, it could retrieve a .pdf document for the user. In the Synchronous Mode it would retrieve the document and immediately present it to the user. In the Asynchronous Mode you might imagine it creating the document (maybe from information stored in a database).
For the purposes of this assignment, the Asynchronous Mode can simply return the same document as the Synchronous Mode request – perhaps after a certain period of time has elapsed (so that we can have the opportunity to determine if the request has completed or not).更多精彩文章及讨论,请光临枫下论坛 rolia.net
The application should provide the following functionality:
· Allow the user to submit either a Synchronous Mode or an Asynchronous Mode request to the web service.
· For a Synchronous Mode request, immediately display the result of the web service’s processing.
· For an Asynchronous Mode request, immediately return an indication to the user that the request has been submitted. The user must then have some means of querying the web service to determine if the request has completed yet or not. Once the request has completed, the user must be able to retrieve the results of the request.
The web service itself can do whatever you like. For example, it could retrieve a .pdf document for the user. In the Synchronous Mode it would retrieve the document and immediately present it to the user. In the Asynchronous Mode you might imagine it creating the document (maybe from information stored in a database).
For the purposes of this assignment, the Asynchronous Mode can simply return the same document as the Synchronous Mode request – perhaps after a certain period of time has elapsed (so that we can have the opportunity to determine if the request has completed or not).更多精彩文章及讨论,请光临枫下论坛 rolia.net