As per PETALSDISTRIB-133, technical errors should be kept as errors and not transformed to fault.
Now that PETALSCDK-130 is closed, FaultException, DocumentException, SOAP11FaultServerException and SOAP11FaultClientException should be removed from the CDK.
Note: these exception were used previously by components to build faults that were coherent with their WSDL: for that case, we should provide utils to create Fault from a Document or other XML in-memory representation of a fault.
But that shouldn't be done using Java exceptions (except maybe for the case of the POJO that seems to be relying on it... maybe we should move that "exception-based fault handling" logic to the pojo if we think current users of the component are exploiting them! (or provides an easy to use alternative)).
As per PETALSDISTRIB-133, technical errors should be kept as errors and not transformed to fault.
Now that PETALSCDK-130 is closed, FaultException, DocumentException, SOAP11FaultServerException and SOAP11FaultClientException should be removed from the CDK.
Note: these exception were used previously by components to build faults that were coherent with their WSDL: for that case, we should provide utils to create Fault from a Document or other XML in-memory representation of a fault.
But that shouldn't be done using Java exceptions (except maybe for the case of the POJO that seems to be relying on it... maybe we should move that "exception-based fault handling" logic to the pojo if we think current users of the component are exploiting them! (or provides an easy to use alternative)).
Environment:
-
Issue Links
Depends
This issue depends on:
PETALSCDK-130
Technical errors should NOT be transformed to Fault, and even less SOAPFault
PETALSSEJSR-28
Technical errors should NOT be transformed to Fault
Victor NOËL added a comment - Thu, 21 May 2015 - 17:16:43 +0200 This is mainly related to the fact that components call setFault(Throwable) on an Exchange from the CDK.
Victor NOËL added a comment - Fri, 22 May 2015 - 17:06:57 +0200
Issues for all impacted components are linked (except for the BPEL SE that is not supported anymore).
Fixing all these issues means to remove altogether the setFault(Throwable) method and the corresponding Exceptions from the CDK.
Some of them may be moved to the POJO but the SOAP aspect of it removed (see PETALSCDK-133 for details).
Victor NOËL added a comment - Fri, 22 May 2015 - 17:06:57 +0200 Issues for all impacted components are linked (except for the BPEL SE that is not supported anymore).
Fixing all these issues means to remove altogether the setFault(Throwable) method and the corresponding Exceptions from the CDK.
Some of them may be moved to the POJO but the SOAP aspect of it removed (see PETALSCDK-133 for details).
Victor NOËL added a comment - Wed, 15 Jul 2015 - 12:01:09 +0200 FaultException was moved (and rewritten) for the POJO SE. The other exceptions were removed as well as setFault(Throwable)
This is mainly related to the fact that components call setFault(Throwable) on an Exchange from the CDK.