Details
-
Bug
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
1.2.22
-
None
-
None
Description
I have what I believe is valid soap 1.1 reply which contains a fault which is preceded with an additional non fault sibling, ie.
<soap .... ><body> <response>...</response><fault>....</fault></body></body>
The soap 1.2 specification specifically forbids this type of response but the only thing stated in the soap 1.1 specification is that you can only have one soap fault, with no limitations on other body elements.
In looking into the code the org.apache.axiom.soap.impl.llom.SOAPBodyImpl which is the parent of the org.apache.axiom.soap.impl.dom.soap11.SOAP11BodyImpl. the hasFault() and get fault only checks the first element of the body where as the spec does not specify it has to be the first and/or only element.