Hi can you post some example please, how do you specify jaxrs:schemaLocations ? it might be that you may need to add a leading slash, before the name of the resource : classpath:/schemas/myschema.xsd
I've fixed it on the trunk and classpath:schemas/myschema.xsd will also work now... cheers, Sergey javamustang wrote: > > Hi all, > > Thank you very much indeed for all your help. I'm very happy for your > precicious answers as i'm beginner. I asked my boss and i may use Spring. > So I managed to migrate and call my Rest Service to CFX and Spring. > > Just the validation resp. the entry jaxrs:schemaLocations seems have no > effect at all. > > My Service consumes xml and produces xml, method ist post. What i expexted > is, when the service is called and the incoming xml is invalid according > the xsd, then the code inside my service is not run at all, but what > happens is my code recieves the complex type (marshalled from xml) even > when fields are not valid according the xsd. As if the > jaxrs:schemaLocations has no effect at all. > > Is my expection wrong, that when xml is not valid my service code does not > run and the framework makes some kind of response to the customer? Or do i > have to code something more that it works and make a kind of response that > it is invalid myself?..:-) > > Many thanks again for your help! MAx > -- View this message in context: http://www.nabble.com/xsd-Validation-and-CXFNonSpringJaxrsServlet-and-ssl-tp24202869p24271811.html Sent from the cxf-user mailing list archive at Nabble.com.
