xsd - Customizing Validate Node Error Message in OSB 12c -
when add validate node in osb 12c validating incoming request against xsd, , if validation fails , in fault messages field name causing validation error displayed. decimal values , fault message saying invalid decimal value , no mention field error thrown. can overcome issue
i not sure direct solution. there workaround may suit need
create xquery validates payload , throws custom error messages
eg: xml element should contain decimal value abc
if ($a instance of xs:long) () else (fn:error(xs:qname('your error code'), 'your error message'))
suitable method if payload small.
https://gibaholms.wordpress.com/2013/09/24/osb-throw-exception-in-xquery1
if payload large
- identify fields supposed have these type of issues.
- create xquery validating these fields error messages.
- use validate node inside stage , use stage error handler
- validate payload using xquery inside stage error handler
Comments
Post a Comment