In the global policy[message-completed], How to know the result of API?
If global policy[message-completed] is active, when http response is send to requestor?
swervice API is completed? or global policy is completed?
The message-completed policy will execute after the policy has finished in it's entirety.
We state the following within our online documentation which you can reference here:
Global Policy Fragments - CA API Gateway - 9.4 - CA Technologies Documentation
Hope that helps.
Thank you Daren for your reply.
I can understand when global policy[message-completed] will run.
Next of my question is How can global policy[message-completed] know the result of processing for a message?
For example, what is http response code(200 or 400 or 500?), what is http response header, what is response message body, etc.
You can look to check the values of certain variables such as
We document the available context variables here:
Transport Layer Context Variables - CA API Gateway - 9.3 - CA Technologies Documentation
Retrieving data ...