How to catch the exact validation fault message?
521236Jul 8 2012 — edited Feb 26 2020Hi experts,
I would like to catch the exact validation fault message.
If the validate operation fails then I get the next SOAP Fault:
<env:Fault xmlns:ns0="http://docs.oasis-open.org/wsbpel/2.0/process/executable">
<faultcode>ns0:invalidVariables</faultcode>
<faultstring>faultName: {{http://docs.oasis-open.org/wsbpel/2.0/process/executable}invalidVariables}
messageType: {{http://schemas.oracle.com/bpel/extension}RuntimeFaultMessage}</faultstring>
<faultactor/>
<detail>
<exception/>
</detail>
</env:Fault>
However In the enterprise manager (audit trail) I can see the next message at the failed validate operation:
Invalid data: The value for variable "req_ProcessAdjustmentOp", part "bodyUPI" does not match the schema definition for this part Invalid text '?' in element: 'date'. The invalid xml document is shown below:
I would like to send back this message to the service consumer as it contains more information about the error. How could I do that? I've already tried the ora:getFaultAsString() function but I got the original fault.
Thanks,
Viktor