You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Benjamin Cody (JIRA)" <ji...@apache.org> on 2011/09/15 11:08:10 UTC
[jira] [Created] (CXF-3804) CXF Schemas: use paramerized types
everywhere
CXF Schemas: use paramerized types everywhere
---------------------------------------------
Key: CXF-3804
URL: https://issues.apache.org/jira/browse/CXF-3804
Project: CXF
Issue Type: Improvement
Components: Configuration
Affects Versions: 2.4.2
Reporter: Benjamin Cody
*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.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira