Details
-
Improvement
-
Status: Open
-
Major
-
Resolution: Unresolved
-
2.4.2
-
None
-
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.