6 Replies Latest reply: Feb 13, 2013 8:50 AM by 989288 RSS

    In BPEL, how to create a SOAP fault?

    989330
      I am using JDeveloper 11.1.1.6. I need to send SOAP fault by setting faultstring, faultcode and faultactor. How can I define asoap fault and send?
        • 1. Re: In BPEL, how to create a SOAP fault?
          Vineet.-Oracle
          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
          • 2. Re: In BPEL, how to create a SOAP fault?
            Eric Elzinga
            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
            • 3. Re: In BPEL, how to create a SOAP fault?
              989330
              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.
              • 4. Re: In BPEL, how to create a SOAP fault?
                Abhinav
                You can achieve the same by using OSB fault handling functionality.
                • 5. Re: In BPEL, how to create a SOAP fault?
                  Eric Elzinga
                  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 :
                  http://www.xenta.nl/blog/2010/07/17/oracle-service-bus-11g-handling-soap-faults/
                  http://www.xenta.nl/blog/2011/10/31/oracle-service-bus-generic-fault-handling/
                  • 6. Re: In BPEL, how to create a SOAP fault?
                    989288
                    Can you try with java code embedding before or after Reply/rethrow activity?