'wait' Policy Statement
How to use the "wait" Policy statement to make multi-threading calls for an Azure API service operation?
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>
2018-01-13, 214👍, 0💬
How To Support Multiple-Page Forms in PHP? If you have a long form with a lots of fields, you may wa...
How To Control Horizontal Alignment in Table Cells? By default, text in all table cells are aligned ...
Can You Copy an Array in PHP? You can create a new array by copying an existing array using the assi...
Can You Specify the "new line" Character in Single-Quoted Strings? You can not specify the "new line...
How To Use an Array as a Queue in PHP? A queue is a simple data structure that manages data elements...