I suspect an answer to your query is likely to be a custom extension to do the validation within the IS that is hosting GW.
But i wanted to explore whether or not that should be done in GW. Whenever I see a proposal to “validate the message” in the middle, I usually have a concern. The concern is driven in part by previous cases where validation and enforcement was implemented in wM IS components, and over time removed because the end point really did not need it done on their behalf. For example, there was case where wM IS would block a message because it was missing an element, or had a value that was previously requested to be blocked – and when it was blocked the target said “oh, we need that now, pass it through anyway.” They had forgotten it was blocked.
Similar scenarios have repeated over the years. And with the evolution of apps and pretty much every app having the ability to “do JSON over HTTP” the need for middleware validation and enforcement to prevent “bad” data from reaching an app has significantly diminished.
So my query here is – does the payload validation really need to occur in GW or does the native service already do it? If the native service already verifies things, does it make sense for GW to duplicate that? In most of the cases we’ve implemented in the past few years, we don’t do schema validation “in the middle” (API GW or IS). Structure (valid XML, JSON) is inherently validated at times (string to doc) but nowhere is it enforced that, for example, “xyz” element is present.
More of an academic discussion I suppose.
#webMethods-cloud#webMethods#API-Management#API-Gateway#webMethods-io-Integration