'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>
2017-09-23, 114👍, 0💬
Can You Copy an Array in PHP? You can create a new array by copying an existing array using the assi...
How To Support Multiple-Page Forms in PHP? If you have a long form with a lots of fields, you may wa...
How To Write a String to a File with a File Handle in PHP? If you have a file handle linked to a fil...
Where to find tutorials on how to Read and Write Files in PHP? A collection of tutorials to answer m...
Why Do You Need to Filter Out Empty Files in PHP? When you are processing uploaded files, you need t...