'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, 639👍, 0💬
How to use the "rewrite-uri" Policy Statement for an Azure API service operation? The "rewrite-uri" ...
How To Support Multiple-Page Forms in PHP? If you have a long form with a lots of fields, you may wa...
How to use urllib.parse.urlencode() function to encode HTTP POST data? My form data has special char...
How to see more EPUB 2.0 metadata list with Calibre? You can follow this tutorial to view EPUB 2.0 m...
How to install .NET Framework in Visual Studio Community 2017? I have the Visual Studio Installer in...