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

  1. identify fields supposed have these type of issues.
  2. create xquery validating these fields error messages.
  3. use validate node inside stage , use stage error handler
  4. validate payload using xquery inside stage error handler

Comments

Popular posts from this blog

python Tkinter Capturing keyboard events save as one single string -

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

javascript - VueJS2 and the Window Object - how to use? -