You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Aki Yoshida <el...@googlemail.com> on 2012/01/25 17:30:54 UTC

Re: Apache CXF : How can we have minOccurs="1" for a String ??

Hi,
I think you should be getting the schema element with the omitted
minOccurs="0" that corresponds to the default minOccurs="1".
So, this is strange. What is your CXF version?

regards, aki

2012/1/25 krn1231@gmail.com <kr...@gmail.com>:
> 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 .
>
>
> --
> View this message in context: http://cxf.547215.n5.nabble.com/Apache-CXF-How-can-we-have-minOccurs-1-for-a-String-tp5429954p5429954.html
> Sent from the cxf-user mailing list archive at Nabble.com.