cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kyle Lape (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CXF-5009) Allow multiple subcodes in a SOAP fault
Date Fri, 10 May 2013 00:05:19 GMT

     [ https://issues.apache.org/jira/browse/CXF-5009?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Kyle Lape updated CXF-5009:
---------------------------

    Description: 
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:Subcode>
          <soap:Value xmlns:ns1="http://ws.gss.redhat.com/">ns1:Failure</soap:Value>
        </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}

  was:
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:Subcode>
          <soap:Value xmlns:ns1="http://ws.gss.redhat.com/">ns1:Failure</soap:Value>
        </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>

    
> Allow multiple subcodes in a SOAP fault
> ---------------------------------------
>
>                 Key: CXF-5009
>                 URL: https://issues.apache.org/jira/browse/CXF-5009
>             Project: CXF
>          Issue Type: Bug
>          Components: Soap Binding
>            Reporter: Kyle Lape
>
> 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:Subcode>
>           <soap:Value xmlns:ns1="http://ws.gss.redhat.com/">ns1:Failure</soap:Value>
>         </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

Mime
View raw message