Hi,
  Iam using REST full webservices with JAX-RS  and JAXB annotations. 

  I need to validate incomming client request(xml) against Schema.I
configured in cxf-spring- xml to 
validate the request. 

I added web-service-impl-cxf-spring-context to use schema validation


  
     classpath:/generated-schema/schema1.xsd
   


Used maven-jaxb-schemagen-plugin to generate xsd schema. JAX-RS annonation
are used in model(POJO). 

I dont know why schema validation is not happening. If i pass some junk
value(eg:if i pass string value instead of long), jax-RS takes it as 'null'
while unmarshelling(I mean during xml to java) ...


http://cxf.apache.org/docs/jax-rs-data-bindings.html#JAX-RSDataBindings-Schemavalidation



I am not sure why it is ignorin..do I need to write any
validationEventHandler to take care of xsd validation.??
Can you please suggest me how do I go ahead with this?


--
View this message in context: 
http://cxf.547215.n5.nabble.com/CXF-JAX-RS-XML-schema-Validation-tp4269657p4269657.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to