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 [email protected] <[email protected]>: > 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.
