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".
>

Reply via email to