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, ∼2182🔥, 0💬
Popular Posts:
How to add request query string Parameters to my Azure API operation 2017 version to make it more us...
How to build a PHP script to dump Azure AD 2.0 Authentication Response? If you are use the Azure-AD-...
How to use the "Ctrl-p Ctrl-q" sequence to detach console from the TTY terminal of container's runni...
Where to find tutorials on HTML language? I want to know how to learn HTML. Here is a large collecti...
Where to find tutorials on OpenID? Here is a large collection of tutorials to answer many frequently...