Thanks, I will try that out. -- Eric
On Wed, Oct 13, 2010 at 10:12 PM, Daniel Kulp [via CXF] < ml-node+3211406-255236166-102...@n5.nabble.com<ml-node%2b3211406-255236166-102...@n5.nabble.com> > wrote: > On Wednesday 13 October 2010 10:02:59 pm Daniel Kulp wrote: > > > On Wednesday 13 October 2010 9:17:42 pm ericacm wrote: > > > First off, congratulations to Dan and everyone in getting 2.3.0 out! > > > > > > Since it's out the first thing I wanted to test was one of my pet > issues, > > > required @WebParams. > > > > > > The JAX-WS 2.2 spec (section 3.6.2.1) says: > > > > If a SEI’s method parameter or return type is annotated with > > > > @XmlElement, that annotation is used for the wrapper bean properties. > > > > > This can be used to map corresponding XML schema element > declaration’s > > > > attributes like minOccurs, maxOccurs, and nillable etc. > > > > > > So I went and added @XmlElement(required=true) to a parameter to test. > > > It turns out that you can't even add @XmlElement to a method parameter > > > because it has @Target(value={FIELD,METHOD}). The compiler won't allow > > > > it. > > > > You need to endorse the jaxb 2.2 api jar. That should allow this to > work. > > Or use Java 5, not 6. > > > > I just added a note about this to the migration guide: > https://cwiki.apache.org/CXF20DOC/23-migration-guide.html > > Dan > > > > > > Dan > > > > > Has anyone else run into this issue? Will I have to bite the bullet > and > > > use one of the workarounds that have been mentioned? > > > - Create a wrapper bean and use the @XmlElement there > > > - Switch to Aegis > > > - Use WSDL first > > > > > > Lots of work either way, not looking forward to it. > > > > > > Thanks, > > -- > Daniel Kulp > [hidden email] <http://user/SendEmail.jtp?type=node&node=3211406&i=0> > http://dankulp.com/blog > > > ------------------------------ > View message @ > http://cxf.547215.n5.nabble.com/Revisiting-required-WebParams-tp3211381p3211406.html > To unsubscribe from Revisiting required @WebParams, click > here<http://cxf.547215.n5.nabble.com/template/TplServlet.jtp?tpl=unsubscribe_by_code&node=3211381&code=ZXJpY2FjbUBnbWFpbC5jb218MzIxMTM4MXwxNjQ4MTQ0ODM5>. > > > -- View this message in context: http://cxf.547215.n5.nabble.com/Revisiting-required-WebParams-tp3211381p3211985.html Sent from the cxf-user mailing list archive at Nabble.com.