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

Wrong namespace for faultcode

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.1.1
    • 2.1.2, 2.0.9
    • Soap Binding
    • None

    Description

      When throwing a SoapFault constructed using SoapFault.FAULT_CODE_CLIENT the generated response contains
      <soap:Fault><faultcode xmlns:ns1="http://cxf.apache.org/faultcode">ns1:client</faultcode>...

      I think the SOAP spec http://www.w3.org/TR/2000/NOTE-SOAP-20000508/#_Toc478383510 suggests that the faultcode should be in the envelope namespace.

      cnf. org/apache/cxf/interceptor/Fault.java
      maybe should be changed to
      public static final QName FAULT_CODE_CLIENT = new QName("http://schemas.xmlsoap.org/soap/envelope/", "Client");
      public static final QName FAULT_CODE_SERVER = new QName("http://schemas.xmlsoap.org/soap/envelope/", "Server");
      (probably only in the inherited SoapFault?)

      Thanks,
      Martin

      Attachments

        Activity

          People

            Unassigned Unassigned
            mamue Martin Muenstermann
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: