On Wednesday, January 25, 2012 3:25:32 AM [email protected] wrote:
> Hi ,
> 
> I am using Apache CXF for Web service development . We have written java
> code and  the WSDL will be automatically generated by the CXF Engine
> 
> I have a String named xmlMessage  which i want to have as minoccurs as 1
> For this i used
> 
> 
> *private String            xmlMessage ;
> 
> @XmlElement(name = "xmlMessage", required = true)
>    public String getXmlMessage()
>    {
>       return xmlMessage;
>    }*
> 
> 
> 
> But when the WSDL File got generated , it still showed as
> 
> <xs:element minOccurs="0" name="xmlMessage" type="xs:string"/>
> 
> Please tell me how can i have minOccurs="1" for a Input Message .

Using the @XmlElement(required="true") like that should definitely have 
worked.    Any chance you can provide a test case?



-- 
Daniel Kulp
[email protected] - http://dankulp.com/blog
Talend Community Coder - http://coders.talend.com

Reply via email to