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.

Reply via email to