Testing polling style asynchronous REST services

When using RESTFul web services to orchestrate a long-running asynchronous process, a popular approach is to use a polling style. This involves an initial resource call to start the process and then another resource is called at intervals (polled) to obtain status updates until the process is complete. At this point, a final resource is called to obtain the required output. There are, of course, variants on this in terms of calls made and status codes used, but the overall pattern remains similar.

In this recipe, we'll see how to test this style of asynchronous service using a RESTFul mock quote service as an example.

Getting ready

The example quote service has the following resources (produces and ...

Get SoapUI Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.