This is definitely something that is interesting, but I’m not exactly sure if this is a “CXF” thing. CXF doesn’t really generate the Schemas, it delegates down to the various data bindings for that. Normally that’s JAXB. Thus, I kind of consider this more of extensions to JAXB.
There is a project at: https://github.com/whummer/jaxb-facets that aims to do some of this. The problem is that instead of using any of the extension points in the JAXB runtime, they forked the jaxb-impl and added a bunch of stuff directly in there. That’s usable, but that means you’ll never be able to use a standard jaxb runtime. I think it also requires endorsing the jaxb-api jar. I’ve wondered if the jaxb-impl has enough (or appropriate) extension points to be able to accomplish the same idea without having to fork it. I don’t really know. Dan > On Nov 25, 2015, at 2:13 AM, Benedikt Ritter <brit...@apache.org> wrote: > > 2015-11-21 12:44 GMT+01:00 Benedikt Ritter <brit...@apache.org>: > >> Hello Christiano, >> >> 2015-11-20 7:52 GMT+01:00 Cristiano Costantini < >> cristiano.costant...@gmail.com>: >> >>> Hi, >>> your idea seems interesting, >>> could you write an example of what you mean? An example of a class >>> annotated with JSR 303 and the WSDL/XSD you do expect would be great. >>> >> >> we've put together an example at github [1]. The README.md contains an >> overview of how annotations could be mapped to WSDL. >> > > Any comments on the proposal? Does it fit into CXF? Is the CXF project > interested in such a proposal? > > Thanks. > Benedikt > > >> >> Regards, >> Benedikt >> >> [1] https://github.com/codecentric/cxf-bean-validation >> >> >>> >>> Thank you, >>> Cristiano >>> >>> >>> Il giorno gio 19 nov 2015 alle ore 21:21 Benedikt Ritter < >>> brit...@apache.org> >>> ha scritto: >>> >>>> Hello, >>>> >>>> one of the projects at my company currently has the need to generate >>> WSDLs >>>> from Java classes annotated with JSR 303 annotations [1]. They are using >>>> CXF's java2ws-maven-plugin, but the plugin does not process JSR 303 >>>> annotations. >>>> We're currently evaluating ways to generate XSD facets for representing >>> the >>>> annotations. One idea is to extend the java2ws-maven-plugin so that is >>> can >>>> generate this as well. >>>> Would the CXF project be interested in such a contribution? If so, I can >>>> elaborate more about how JSR 303 annotations could be mapped to facets. >>>> >>>> Regards, >>>> Benedikt >>>> >>>> [1] http://beanvalidation.org/ >>>> >>>> -- >>>> http://people.apache.org/~britter/ >>>> http://www.systemoutprintln.de/ >>>> http://twitter.com/BenediktRitter >>>> http://github.com/britter >>>> >>> >> >> >> >> -- >> http://people.apache.org/~britter/ >> http://www.systemoutprintln.de/ >> http://twitter.com/BenediktRitter >> http://github.com/britter >> > > > > -- > http://people.apache.org/~britter/ > http://www.systemoutprintln.de/ > http://twitter.com/BenediktRitter > http://github.com/britter -- Daniel Kulp dk...@apache.org - http://dankulp.com/blog Talend Community Coder - http://coders.talend.com