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, 1248👍, 0💬
Popular Posts:
Where is API Management Service on my Azure Portal? If your IT department has signed up for an Azure...
How to detect errors occurred in the json_decode() call? You can use the following two functions to ...
How to pull NVIDIA CUDA Docker Image with the "docker image pull nvidia/cuda" command? If you are ru...
How to login to the Developer Portal internally by you as the publisher? Normally, the Developer Por...
How To Read a File in Binary Mode in PHP? If you have a file that stores binary data, like an execut...