cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jason Pell (JIRA)" <>
Subject [jira] [Updated] (CXF-3813) Possibiblity to only validate requests and/or responses
Date Mon, 01 Oct 2012 09:19:07 GMT


Jason Pell updated CXF-3813:

    Comment: was deleted

(was: I am assuming I need to maintain backwards compatibility with the enabled field from
SchemaValidation annotation interface as well?  If thats the case then I have the following
code in AnnotationsFactoryBeanListener

Oops - my bad you can't have a null default value for a field in an annotation. 

So I will have to think of another way to support both.  

I think this will do the trick:

private void addSchemaValidationSupport(Endpoint endpoint, SchemaValidation annotation) {
        if (annotation != null) {
            // if someone has gone to the effort of specifying enabled=false, then we need
            // handle that, otherwise we use the new SchemaValidationType type only
            if (!annotation.enabled()) {
            } else {
                endpoint.put(Message.SCHEMA_VALIDATION_ENABLED, annotation.type().name());
> Possibiblity to only validate requests and/or responses
> -------------------------------------------------------
>                 Key: CXF-3813
>                 URL:
>             Project: CXF
>          Issue Type: Improvement
>          Components: JAX-WS Runtime
>    Affects Versions: 2.4.2
>         Environment: N/A
>            Reporter: David J. M. Karlsen
>              Labels: cxf, schema, validation, xsd
>         Attachments: patch.txt
> Today it is possible to specify to validate or not, it would be even better if one could
specify to only validate requests, only responses, or both as today.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

View raw message