'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, 243👍, 0💬
How To Upload Files into Database in PHP? To store uploaded files to MySQL database, you can use the...
Where to find tutorials on Visual Studio? I want to know How to learn Visual Studio. Here is a large...
Where to find tutorials on PHP language? I want to know how to learn PHP. Here is a large collection...
How To Select an Exiting Database in PHP? The first thing after you have created a connection object...
How To Control Table Widths? Usually, browsers will calculate the table width based on the content w...