Can you check the logs please ? If a given schema has not been read then there should be a warning that the validation will be disabled...
cheers, Sergey On Mon, Oct 25, 2010 at 2:38 PM, jherry <[email protected]> wrote: > > I tried but but nothing changed, xml is not validated. Did it work for you? > > > vmrm wrote: > > > > > > Thanx Sergey, > > > > Will try this out and let you know. > > > > > > Sergey Beryozkin wrote: > >> > >> 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 > >> > > > -- > View this message in context: > http://cxf.547215.n5.nabble.com/how-to-turn-on-schema-validation-for-NON-SPRING-CXF-tp567050p3235415.html > Sent from the cxf-user mailing list archive at Nabble.com. >
