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

CXF Schemas: use paramerized types everywhere

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2.4.2
    • Fix Version/s: None
    • Component/s: Configuration
    • Labels:
    • Estimated Complexity:
      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

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

              Dates

              • Created:
                Updated: