Creating Custom Error Codes in OSB
Hi,
I have created a proxy service as Any XML Service which is routed to a Business Service which is Any Messaging service.
In the Message Flow, I have added a Validate action against a schema.
I want to raise an Error "Validation failed. Please enter valid values." with an Error Code as 402, when there is a validation error (instead of BEA-382505 OSB Validate action failed validation)
In short I want to customize error codes.
How to implement this scenario?
Please HELP!!!
Thanks in advance!!