On Wednesday, March 28, 2012 12:27:43 AM Wentwog Wentwog wrote: > Thank you for the reply ! > > >> jax ws 2.2 > > but I'm not using Metro, I'm using CXF.
CXF is also JAX-WS 2.2 compliant. JAX-WS is a specification. > If this is CXF annotation, can you say the full qualified name ? This is a JAXB annotation. However, to add it to a parameter to a method, you need to have the 2.2 version of the JAXB API. The version that is part of Java6 is only 2.1. Thus, you have to "endorse" the 2.2 jar or move to Java7 in order for it to work. Dan > > > 2012/3/27 Jason Pell <[email protected]> > > > You can add an @Element(required = true) to the web service interface in > > jax ws 2.2 > > > > On Mar 27, 2012 6:50 AM, "Wentwog Wentwog" <[email protected]> wrote: > > > Hi, all. > > > > > > I'm using java first method to build a web service with Apache CXF > > > 2.5.1 > > > maven plugin. > > > > > > The WSDL that was generated unfortunately specifies minOccurs="0" for > > > arguments of my service operations. > > > Like that: > > > <xs:complexType name="sign"> > > > <xs:sequence> > > > <xs:element minOccurs="0" name="soapMsg" type="xs:string"/> > > > </xs:sequence> > > > </xs:complexType> > > > > > > Is it possible to specify Apache CXF to set minOccurs="1". -- Daniel Kulp [email protected] - http://dankulp.com/blog Talend Community Coder - http://coders.talend.com
