spring - Configuring JAXRS to do schema validation for only some service beans -


i have spring-configured cxf-powered jax-rs service 2 service beans:

 <jaxrs:server id="wsservices">     <jaxrs:servicebeans>        <ref bean="a"/>        <ref bean="b"/>     </jaxrs:servicebeans>     <jaxrs:schemalocations>         <jaxrs:schemalocation>            classpath:/schema/webservices.xsd         </jaxrs:schemalocation>     </jaxrs:schemalocations>  </jaxrs:server>  <bean id="a" class="aserviceimpl"/>  <bean id="b" class="bserviceimpl" /> 

unfortunately, 1 of 2 service beans covered xsd file, that other 1 fails @ schema validation.

i know how turn off schema validation altogether, , both services work fine (but i'd rather continue have validation can used).

how can change configuration use schema validation bean a, not b?

schema validation set @ jax-rs service level, can't want directly (without adding schema) can have multiple <jaxrs:server> instances in same webapp different paths. should let set want without trouble. (this more sophisticated configuration approach of cxf comes own.)


Comments

Popular posts from this blog

php - Why I am getting the Error "Commands out of sync; you can't run this command now" -

linux - Does gcc have any options to add version info in ELF binary file? -

java - Are there any classes that implement javax.persistence.Parameter<T>? -