Validation of Message

When a mediation flow is created, a property called VALIDATE_MESSAGE_DATA is added by default.

At design time, a property VALIDATE_MESSAGE_DATA is defined in the mediation flow implementation. When set to true, this property is used to validate the incoming message. This property is accessed by the mediation component in the composite is exposed at the composite level as MEDIATE_VALIDATE_MESSAGE_DATA.

Having this property at the mediation component level allows for fine-grained control compared to defining it at the mediation implementation level.

A property VALIDATE_MESSAGE_DATA is available at the mediation implementation level when viewed using the Administrator UI. The default value of this property is false. Set this property to true to enable validation of message data received by the mediation component. Validation of message data happens for both the component service and reference.

Setting this property to true at the mediation implementation level enables validation on every mediation component on that particular node.

The value of the property set at the mediation component level takes precedence over the value set at the mediation implementation level. At runtime, when the incoming message (either a request message on the mediation interface or a reply message on the target interface) into mediation fails validation, an undeclared fault is returned to the consumer. The fault message will only indicate that a validation failure has occurred with no details provided. For more details about the cause of the validation failure will be contained in the log files.