cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aki Yoshida <elak...@googlemail.com>
Subject Re: Apache CXF : How can we have minOccurs="1" for a String ??
Date Wed, 25 Jan 2012 16:30:54 GMT
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 <krn1231@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.

Mime
View raw message