cxf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sergey Beryozkin" <sergey.beryoz...@iona.com>
Subject Re: Enabling databinding schema validation configuration
Date Thu, 19 Oct 2006 13:04:30 GMT
Hi

This may be a bit off topic/unrelated, but you're referring to an option which enables a schema
validation, and I'd like to add one
comment/suggestion :

* it should be possible in CXF, when appropriate (when JAXB is used), given that JAXB supports
an option where unrecognized elements 
are ignored, to
enable this JAXB option through the config, perhaps it should be a default setting.
This will be critical IMHO, this will enable an evolution of schemas which will enable backward
compatibilty (new providers of
input/output data will be able to talk to old consumers with or without the validation being
enabled)

Cheers, Sergey

Hi Andrea,

I write the following snippet to configure service and port to enable schema validation  :

<bean id="{http://apache.org/hello_world_soap_http}SOAPService" class="org.apache.cxf.service.ServiceImpl">
        <property name="enableSchemaValidationForAllPorts" value="true"/>
</bean>

<bean id="{http://apache.org/hello_world_soap_http}SOAPPort" class="org.apache.cxf.endpoint.EndpointImpl">
        <property name="enableSchemaValidation" value="true"/>
</bean>

Is it the correct way ?

I have not found the code  to configure each operation in runtime. Is there any approach to
configure operation like calling
configObject() to configure service ?

Thanks

Jim















Mime
View raw message