How to use dynamic validate in Oracle Service Bus 12c by Jan van Zoggel
February 13, 2016 Leave a comment
One of the new features introduced in Oracle Service Bus 12c is the ability for dynamic validation. A feature which can be used to validate a message against a WSDL or XSD schema file which is both explained here by Oracle. The example on the Oracle website shows this XML code to validate against a XSD:
|
1 2 3 4 5 6 |
<validate xmlns="http://www.bea.com/wli/sb/context"> <schema>default/MySchema</schema> <schemaElement> <localname>MyElementType</localname> </schemaElement> </validate> |
However I tried “playing” with the new feature but couldn’t get it to work. The error I got was:
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
<soap:Fault> <soap:Code> <soap:Value>soap:Receiver</soap:Value> </soap:Code> <soap:Reason> <soap:Text xml:lang="nl">OSB-382524: Failed to perform validation</soap:Text> </soap:Reason> <soap:Detail> <con:fault xmlns:con="http://www.bea.com/wli/sb/context"> <con:errorCode>OSB-382524</con:errorCode> <con:reason>Failed to perform validation</con:reason> <con:location> .. </con:location> </con:fault> </soap:Detail> </soap:Fault> |
After contacting Oracle Support I received the following info:
- BUG 20367846: Internal Documentation – Validate action to dynamically select a schema – documentation is not clear
- BUG 20380158: Validate action – Dynamic validation throws NPE
A patch for BUG 20380158 was then released for Oracle Service Bus 12.1.3, which then could be downloaded from Oracle Support: Read the complete article here.
For regular information on Oracle SOA Suite become a member in the SOA & BPM Partner Community for registration please visit www.oracle.com/goto/emea/soa (OPN account required) If you need support with your account please contact the Oracle Partner Business Center.
Blog
Twitter
LinkedIn
Facebook
Wiki
Technorati Tags: SOA Community,Oracle SOA,Oracle BPM,OPN,Jürgen Kress
