This content has been marked as final. Show 6 replies
Please refer to "how to use throw activity" in this page: http://simplesoa.blogspot.in
--- Your feedback will help improving my knowledge. Please mark my reply as "Correct Answer" or "Useful answer" or none whichever you think is appropriate.
Edited by: VineetArora on Feb 6, 2013 2:40 PM
i'm dont think you have direct influence on all of the elements of the soap fault definition.
if you throw a custom fault from within your bpel process (see : http://docs.oracle.com/cd/E23943_01/dev.1111/e10224/bp_faults.htm#CIHGHGDE) you will find the defined custom soap fault back in the faultstring part, the rest will be generated by the framework itself
Thank you very much for your response. Is there any other module/component I can able to access SOAP fault and set my own faultcode, faultstring and fault actor? Presently, when a custom fault is sent from BPEL, it is setting fault code as name of the fault (with namespace: ex: ns0:ProcessFault). Instead of that I want to set a specific fault code (like 100) and appropriate fault actor and fault string. Or is it possible using java code in BPEL SOAP fault can be created and set appropriate values?
If not is it available in OSB? (I have not looked OSB yet). Thanks for you response.
You can achieve the same by using OSB fault handling functionality.
to make use of the osb just to be able to construct a soap fault isn't the way to go if you ask me, it got a lot more potential
but for a solution in the osb you could have a look at these examples :
Can you try with java code embedding before or after Reply/rethrow activity?