Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-942

throwing SOAPFault from IMPL is not correctly mapped on the wire

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.1
    • 2.0.2
    • JAX-WS Runtime
    • None

    Description

      Throwing a JAX-WS SOAPFault from a service IMPL does not result in the actor or details being written to the wire.

      SOAPFactory factory = SOAPFactory.newInstance();
      SOAPFault fault = factory.createFault("this is a fault string!", new QName("http://foo", "FooCode"));
      fault.setFaultActor("mr.actor");
      fault.addDetail().addChildElement("test");
      throw new SOAPFaultException(fault);

      results in:
      <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
      <soap:Body>
      <soap:Fault>
      <faultcode>soap:Server</faultcode>
      <faultstring>this is a fault string!</faultstring>
      </soap:Fault>
      </soap:Body>
      </soap:Envelope>

      It should have the details (test element) and the actor element.

      Attachments

        Activity

          People

            dkulp Daniel Kulp
            dkulp Daniel Kulp
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: