I want to validate the SMO XML flowing in Websphere Enterprise Service Bus(WESB) mediation module. Is it possible to do it inside the Custom Mediation or I have to create a Java class for that? And how can I do that? I'm clueless on how to approach this. Also, if you can suggest any useful links to read more on this, I would appreciate that. Thanks :)
Asked
Active
Viewed 297 times
1 Answers
0
Custom mediation is a java class behind scene. In ESB, you can do schema validation of messages by setting the validation checkbox on xslt transformation primitive or you can use code in a custom mediation:
BOInstanceValidator validator = (BOInstanceValidator) new
ServiceManager().locateService("com/ibm/websphere/bo/BOInstanceValidator");
boolean valid = validator.validate(dataObject, diagnosticList);

Anton N
- 2,317
- 24
- 28