My Oracle Support Banner

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 to [Release 11gR1]
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:

  1. 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.
  2. 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?


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

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.