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.


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
dk...@apache.org
http://dankulp.com/blog

Reply via email to