In this recipe, we will identify the ways of how to throw the faults from BPEL. For this recipe, we will adapt the BPEL process from the previous recipe.
In the previous recipe, we saw that the web service performed the check against the dates. However, we would like to change the BPEL process so that some basic checking on the dates is performed in the BPEL process. We will check if the
to dates are the same. If they are the same, we will throw the fault.
<element name = "faultResponse"> <complexType> <sequence> <element name = "msg" type = "string"/> </sequence> </complexType> </element>