[
https://issues.apache.org/jira/browse/CAMEL-8708?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15053428#comment-15053428
]
Pascal Schumacher commented on CAMEL-8708:
------------------------------------------
Just adding a != null check for the detail was not possible, because it is used
to determine the class of the exception created. I solved this be creating a
generic SOAPFaultException when the detail is not present.
> SOAP unmarshalling shouldn't fail for Faults that lack an optional Detail
> element
> ---------------------------------------------------------------------------------
>
> Key: CAMEL-8708
> URL: https://issues.apache.org/jira/browse/CAMEL-8708
> Project: Camel
> Issue Type: Bug
> Components: camel-soap
> Affects Versions: 2.15.1
> Reporter: Alex Savitsky
> Priority: Minor
>
> Camel-soap code assumes that all Faults that a Camel SOAP endpoint is
> receiving, are containing a Detail element. Sending a Fault without Detail
> will result in an NPE. Detail is optional element in SOAP Faults (see
> http://www.w3.org/TR/soap12-part1/#soapfault) and its absence should not
> generate an error.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)