[
https://issues.apache.org/jira/browse/CXF-5009?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13660517#comment-13660517
]
Aki Yoshida commented on CXF-5009:
----------------------------------
Hi Kyle,
the fix has been integrated into the 2.7.x, 2.6.x, and 2.5.x branches. You can
use appendSubCode(QName subCode) or setSubCodes(List<QName> subcodes) to set
the subCododes and getSubCodes() to get the list.
regards, aki
> Allow multiple subcodes in a SOAP 1.2 fault
> -------------------------------------------
>
> Key: CXF-5009
> URL: https://issues.apache.org/jira/browse/CXF-5009
> Project: CXF
> Issue Type: Bug
> Components: Soap Binding
> Reporter: Kyle Lape
> Assignee: Aki Yoshida
> Fix For: 2.5.11, 2.6.9, 2.7.6, 3.0.0
>
>
> Currently CXF only allows one subcode to be set via in a {{SoapFault}}
> object, but the SOAP 1.2 spec allows nested subcodes like so:
> {code:xml}
> <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
> <soap:Body>
> <soap:Fault>
> <soap:Code>
> <soap:Value>soap:Receiver</soap:Value>
> <soap:Subcode>
> <soap:Value
> xmlns:ns1="http://ws.gss.redhat.com/">ns1:Error</soap:Value>
> <soap:Subcode>
> <soap:Value
> xmlns:ns1="http://ws.gss.redhat.com/">ns1:Failure</soap:Value>
> </soap:Subcode>
> </soap:Subcode>
> </soap:Code>
> <soap:Reason>
> <soap:Text xml:lang="en">Error by Failure</soap:Text>
> </soap:Reason>
> </soap:Fault>
> </soap:Body>
> </soap:Envelope>
> {code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira