How To Use Conditionals To Add, Delete and/or Change Nodes In A SOAP Message Using OAG?
(Doc ID 1678969.1)
Last updated on OCTOBER 20, 2022
Applies to:
Oracle API Gateway - Version 11.1.1.6.1 to 11.1.2.4.0 [Release 11gR1]Information in this document applies to any platform.
Goal
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 user 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 user 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?
Solution
To view full details, sign in with your My Oracle Support account. |
|
Don't have a My Oracle Support account? Click to get started! |
In this Document
Goal |
Solution |
References |