This content has been marked as final.
Show 2 replies
-
1. Re: Schema validation for one-way web service operation
mmusaji Dec 14, 2015 7:42 AM (in response to dfilippov)I don't think think is possible because the framework will return immediately on connecting to a @Oneway service. I'm not sure if schema validation is the right approach, but perhaps bean validation is something that might work instead? http://cxf.apache.org/docs/validationfeature.html#ValidationFeature-CommonBeanValidation1.1Interceptors
Regards
Mus
-
2. Re: Schema validation for one-way web service operation
dfilippov Dec 14, 2015 9:39 AM (in response to mmusaji)Mustafa, thank you for advice. I'll try to use bean validation.
The main reason why I want to validate inbound messages against schema is that JAXB silently sets null to (for example) Integer field if corresponding XML-field contains invalid data (not a number).