With Do While activity it is possible to define specific conditions and add it to the webservice workflow. In this example the condition is that the action only should be executed if variable counter is less than 10.

WSD-Activities6