Validating xml documents against xml schema
The XML Schema technology has been a core component of SAP Exchange Infrastructure since version 3.0, but as of SP16 it’s still not possible to have the Integration Server validate messages against an XML Schema.
In other words, even if an interface is based on a message type, which is ultimately defined by a schema, we cannot know whether or not messages on the interface are valid according to that schema.
Add it as the last mapping step, if you want to validate outbound (again, relative to the Integration Server) messages.
This blog entry discusses one approach to performing validation in XI.
Full source code is not provided; implementing the suggested solution is left as an exercise for the reader.
should never find its way into your mapping class; your code should only perform transformations on the message being processed.
Performing schema validation in Java code is fairly straightforward.