On Friday 04 May 2007 09:59, DONAHUE, BRYON J, ATTSI wrote: > This is probably more of a JAXB2 question but... Many JAX-RPC > implementations do not generate code to support XSD facets and the > WSDL and embedded schema, in particular, are required at runtime to > pick up the facets for runtime enforcement. > > This behavior is nice because facets can be changed and applied to the > application at runtime without requiring code regen, redeployment, > and, especially, retesting. In the enterprise environment, this is a > powerful feature. > > Does CXF code gen facet enforcement? Or, is the WSDL/XSD required at > runtime to support facet enforcement?
That's another (optional) use of the wsdl/schema at runtime. There's a flag someplace (don't remember where, I'd have to dig through some code to find it) to turn on the runtime validation. This does require the schema to be available as much of that information is not burned into the jaxb code. That said, there is a performance impact of turning that on. That's just something to keep in mind. -- J. Daniel Kulp Principal Engineer IONA P: 781-902-8727 C: 508-380-7194 [EMAIL PROTECTED] http://www.dankulp.com/blog
