You can set a schema location or a list of schema locations on a
JAXRSServerFactoryBean :

ex :

JAXRSServerFactoryBean  bean = new JAXRSServerFactoryBean();
bean.setSchemaLocation("classpath:a.xsd");

hope it helps, Sergey


vmrm wrote:
> 
> I am using JAX-RS. 
> 
> In case of a malformed XML it throws a JAXBException, but not in case of
> invalid XML.
> 
> 
> 
> 
> 
> Sergey Beryozkin wrote:
>> 
>> Hi 
>> 
>> are you using CXF HTTP Binding or JAX-RS ?
>> 
>> cheers, Sergey
>> 
>> 
>> vmrm wrote:
>>> 
>>> Hi,
>>> 
>>> I am using the NON SPRING CXF-2.2.2 REST implementaion.  I learn that
>>> the schema validation (of JAXB) is OFF by default on it. 
>>> 
>>> 
>>> Please guide me with the any pointers as to How to TURN it ON ? 
>>> 
>>> 
>>> 
>>> Thanks,
>>> vmRM
>>> 
>> 
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/how-to-turn-on-schema-validation-for-NON-SPRING-CXF-tp25472139p25475925.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to