Last updated on JUNE 17, 2016
Applies to:Oracle API Gateway - Version 11.1.2 and later
Information in this document applies to any platform.
On the OAG side there is a requirement that involves creating XML nodes based on certain conditions as well as populating those nodes based on certain conditions.
The reason for this is that a lot of optional elements are exposed to the consumer.
This is what is needed to be achieved:
- If the consumer doesn't populate an optional element, the element won't show in the incoming request, in which case, check for its existence and create the node if it doesn't exist.
- If the consumer populates a particular optional node, then check the node first to see if it exists (to avoid errors before populating it) and perhaps alter the value.
In most tools, this can be easily achieved through a combination of conditional logic and XPath, is there an if-elsif-else type structure exposed in OAG that will achieve the above?
Sign In with your My Oracle Support account
Don't have a My Oracle Support account? Click to get started
Million Knowledge Articles and hundreds of Community platforms