Yes, you are right, there were warnings which i didn't see.
I changed my configuration to
<jaxrs:schemaLocation>classpath:../../xsd/incident.xsd</jaxrs:schemaLocation>
and WARINGS are gone but still when I send an invalid xml, the JAXB object
is getting created without errors or exceptions.
How can I check if the xml input is checked against the xsd? What am I
suppose to get back when an invalid xml is given?
My project structure is shown below.
--webapps
|--MyProject
|--WEB-INF
|--classes/
|--beans.xml
|--web.xml
|--xsd
|--incident.xsd
Thanks
--
View this message in context:
http://cxf.547215.n5.nabble.com/Validate-JAXB-Object-with-xsd-schema-tp5751783p5751833.html
Sent from the cxf-user mailing list archive at Nabble.com.