On 10/25/07, Mauro Molinari <[EMAIL PROTECTED]> wrote: > Hi Deepal, > I just remembered another thing. There already is nillable="true" > attribute for parameters that can be null, so what is minOccurs="0" > useful for?
Microsoft uses minOccurs to generate schema for "reference" class members Code: public class MyClass { //scalars public int primitive; public int? wrapper; public String str; public MyClass2 cls; Schema: <s:complexType name="MyClass"> − <s:sequence> <s:element minOccurs="1" maxOccurs="1" name="primitive" type="s:int"/> <s:element minOccurs="1" maxOccurs="1" name="wrapper" nillable="true" type="s:int"/> <s:element minOccurs="0" maxOccurs="1" name="str" type="s:string"/> <s:element minOccurs="0" maxOccurs="1" name="cls" type="tns:MyClass2"/> Note that "int?" type ( Integer in Java ) is processed using nillable --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]