Hi,
can someone tell me why the following scneario occurs. With the nillable
attribute set to true on an element that has min occurs set to zero, I
generate a class. As expected this adds the IsNullable=true attribute
<xs:element name="SSN" type="xs:string" minOccurs="0" nillable="true"/>
/// <remarks/>
[System.Xml.Serialization.XmlElementAttribute(Form= System.Xml.Schema.XmlSche
maForm.Unqualified, IsNullable=true)]
public string SSN;
When I view the WSDL for the service I see the minoccurs is not 1
<s:element minOccurs="1" maxOccurs="1" form="unqualified" name="SSN"
nillable="true" type="s:string" />
My questions are:
1. Why does the minoccurs value change?
2. If I use a SOAPExtension to validate XML returned from a method call
using the WSDL (which can be done), will it fail if there arew no SSN
details provided?
Any help greatly appreciated.