0

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 :)

ᄂ ᄀ
  • 5,669
  • 6
  • 43
  • 57
user3845894
  • 353
  • 1
  • 5
  • 17

1 Answers1

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);

Documentation

Anton N
  • 2,317
  • 24
  • 28