AKANDOUCH
when using RPC/Encoded mode in Webservice , the IsNullable=false is ignored in the WSDL file:
I have the class (generated from xsd file) that contains the following attributes:
/// <remarks/>
[System.Xml.Serialization.XmlElementAttribute(IsNullable=
false)]
public string CorporateName;
/// <remarks/>
[System.Xml.Serialization.XmlElementAttribute(IsNullable=
true)]
public string Type;
/// <remarks/>
[System.Xml.Serialization.XmlElementAttribute(IsNullable=
false)]
public string ID;
When using document/literal webservice , i get this element in the wsdl file.
<s:element minOccurs="0" maxOccurs="1" name="CorporateName" type="s:string" />
<s:element minOccurs="1" maxOccurs="1" name="Type" nillable="true" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="ID" type="s:string" />
B
BUT when i use RPC/Encoded mode i get all element whith minoccurs=1 and maxoccurs=1 ( IsNullable attribute is ignored)
<s:element minOccurs="1" maxOccurs="1" name="CorporateName" type="s:string" />
<s:element minOccurs="1" maxOccurs="1" name="Type" type="s:string" />
<s:element minOccurs="1" maxOccurs="1" name="ID" type="s:string" />
Windows XP. Visual Studio 2003. framework.net 1.1 .WebService RPC