Uploaded image for project: 'JBoss Web Services'
  1. JBoss Web Services
  2. JBWS-3601

SOAPFaultException cannot render SOAP 1.2 Fault Subcode in CXF

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • jbossws-cxf-4.2
    • jbossws-cxf-4.0.2
    • jbossws-cxf

    Description

      Backport https://issues.apache.org/jira/browse/CXF-4790, which is the root cause. The code below doesn't render <soapenv:Subcode>.

        import javax.xml.soap.SOAPConstants;
        import javax.xml.soap.SOAPFactory;
        import javax.xml.soap.SOAPFault;
        import javax.xml.ws.soap.SOAPFaultException;
        ...
          SOAPFactory factory = SOAPFactory.newInstance(SOAPConstants.SOAP_1_2_PROTOCOL);
          SOAPFault fault = factory.createFault("Operator not found", new QName(SOAPConstants.URI_NS_SOAP_1_2_ENVELOPE, "Receiver"));
          fault.appendFaultSubcode(new QName("...", "OperatorNotFound"));
          ...
          throw new SOAPFaultException(fault);
      

      Attachments

        Issue Links

          Activity

            People

              rhn-support-asoldano Alessio Soldano
              rhn-support-tasato Tadayoshi Sato
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: