Tools, FAQ, Tutorials:
'wait' Policy Statement
How to use the "wait" Policy statement to make multi-threading calls for an Azure API service operation?
✍: FYIcenter.com
The "wait" Policy Statement allows you to make multi-threading calls
to external systems.
The "wait" statement has the following syntax:
<wait for="all|any">
<send-request .../>
<send-request .../>
...
</wait>
If for="any" is specified, the "wait" statement ends if any one of the child calls ends.
If for="all" is specified, the "wait" statement ends if all child calls end.
For example, the following policy makes two web service calls simultaneously and waits for both of them to finish:
<wait for="all">
<send-request mode="new" response-variable-name="response1">
<set-url>http://dev.fyicenter.com/api/users/101</set-url>
<set-method>GET</set-method>
</send-request>
<send-request mode="new" response-variable-name="response2">
<set-url>http://dev.fyicenter.com/api/orders/202</set-url>
<set-method>GET</set-method>
</send-request>
</wait>
⇒ 'set-status' Policy Statement
⇐ 'send-one-way-request' Policy Statement
2018-01-13, ∼2054🔥, 0💬
Popular Posts:
How To Get the Minimum or Maximum Value of an Array in PHP? If you want to get the minimum or maximu...
How to Install Docker Desktop 2.5.0 on Windows 10? You can follow this tutorial to Install Docker De...
What properties and functions are supported on requests.models.Response objects? "requests" module s...
How to create a navigation file like navigation.xhtml for an EPUB 3.0 book? At least one navigation ...
Where to find tutorials on Python programming language? I want to learn Python. Here is a large coll...