Tools, FAQ, Tutorials:
'send-one-way-request' Policy Statement
How to use the "send-one-way-request" Policy statement to call an extra web service for an Azure API service operation?
✍: FYIcenter.com
The "send-one-way-request" Policy Statement allows you to call an extra web service.
The "send-request" statement has the following syntax:
<send-request mode="new|copy"> <set-url>...</set-url> <set-method>...</set-method> <set-header name="" exists-action="override|skip|append|delete">...</set-header> <set-body>...</set-body> </send-request>
Where, mode="new (default) | copy" - Indicates whether you want to start with new empty request of take a copy of the "context.Request" object.
For example, the following outbound policy makes an extra web service call to deliver an alert:
<outbound>
<send-one-way-request mode="new">
<set-url>http://dev.fyicenter.com/api/alert</set-url>
<set-method>POST</set-method>
<set-body>{"alert": {
"type": "warning",
"message": "Someone called the API."
}}
</set-body>
</send-one-way-request>
</outbound>
⇐ 'send-request' Policy Statement
2018-01-13, ∼5003🔥, 0💬
Popular Posts:
How to use the JSON to XML Conversion Tool at utilities-online.info? If you want to try the JSON to ...
How to start Docker Daemon, "dockerd", on CentOS systems? If you have installed Docker on your CentO...
How to use the "set-variable" Policy Statement to create custom variables for an Azure API service o...
Where to find tutorials on HTML language? I want to know how to learn HTML. Here is a large collecti...
How to create a navigation file like navigation.xhtml for an EPUB 3.0 book? At least one navigation ...