Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-1667

SOAPFaultException cannot render SOAP 1.2 Fault Subcode

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 8.0.0.Alpha3
    • None
    • Web Services
    • None

      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);

              ehugonne1@redhat.com Emmanuel Hugonnet
              ehugonne1@redhat.com Emmanuel Hugonnet
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: