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

Improve "No namespace on "{0}" element" error message.

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.6.1
    • Fix Version/s: 2.4.10, 2.5.6, 2.6.3, 2.7
    • Component/s: None
    • Labels:
      None
    • Environment:
    • Estimated Complexity:
      Unknown

      Description

      When our users mistakenly send non-SOAP XML to our server embedding CXF, they get this unhelpful error:

      No namespace on "{0}" element.
      

      Where {0} is the root element.

      The following would be better and give us less support headaches:

      No namespace on "{0}" element. You must send a SOAP request.
      

      Or a message to the effect that a SOAP request is expected instead of a low-level failure.

      The message NO_NAMESPACE is defined in rt\bindings\soap\src\main\java\org\apache\cxf\binding\soap\interceptor\Messages.properties

        Attachments

        1. cxf-4479.diff
          1.0 kB
          Gary D. Gregory

          Activity

            People

            • Assignee:
              ffang Freeman Yue Fang
              Reporter:
              ggregory Gary D. Gregory
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: