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

CXF Schemas: use paramerized types everywhere

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.4.2
    • None
    • Configuration
    • Moderate

    Description

      Example Problem:

      http://cxf.apache.org/schemas/wsdl/http-conf.xsd defines the http-conf:server attribute ReceiveTimeout as an unsigned integer type. If I'd like to make this configurable in a Spring project with a placeholder (e.g. ${cxfServerReceiveTimeoutMs}), I get the following schema validation error in my IDE and at application start-up:

      Multiple annotations found at this line:
      cvc-attribute.3: The value '${cxfServerReceiveTimeoutMs}' of attribute 'ReceiveTimeout' on element 'http-conf:server' is not valid with respect to its type, 'unsignedInt'.
      cvc-datatype-valid.1.2.1: '${cxfServerReceiveTimeoutMs}' is not a valid value for 'integer'.

      Suggested Solution:

      Use the CXF parameterized types (http://cxf.apache.org/schemas/configuration/parameterized-types.xsd) for all CXF schema types, so that everything can be configurable via placeholder mechanisms with common syntax, such as dollar-curly-braces.

      Currently, the CXF parameterized types only seem to be used for some or most other CXF schema types, but not all.

      Attachments

        Activity

          People

            Unassigned Unassigned
            ben.cody@gmail.com Benjamin Cody
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: