http://www.nabble.com/WebServiceProvider-%2B-schema-validation-td19430227.html#a19459974
Lee > -----Original Message----- > From: Andrew Clegg [mailto:[EMAIL PROTECTED] > Sent: Tuesday, September 30, 2008 2:54 AM > To: [email protected] > Subject: Schema validation in Provider services > > Morning all, > > I've noticed that if I 'roll my own' response payload and > serve it up via a class implementing Provider<StreamSource>, > the schema-validation-enabled property in cxf-servlet.xml is > ignored. I can produce non-schema-compliant messages and they > will be returned to the client just fine. > > If I produce invalid XML (e.g. mismatched tags) I get > "Exception occurred while marshalling Dispatch object to > stream" but things like incorrect tag names are ignored. > > Is this working as designed, or a bug I should post a JIRA > for? Or can I perform validation via different means in this > scenario, e.g. by obtaining a reference to the schema > somewhere in my Provider class? > > Many thanks! > > Andrew. >
