c# - WCF not required fileds -


this class generated automatically .cs class .xsd make of fields not required. not work "isnullable", [datamember(isrequired = false)]:

wsdl

  <xs:element name="addrtypecode" nillable="true" type="xs:string" />    <xs:element name="streetname" nillable="true" type="xs:string" />  

.cs

/// <remarks/> [system.codedom.compiler.generatedcodeattribute("xsd", "4.0.30319.1")] [system.serializableattribute()] [system.diagnostics.debuggerstepthroughattribute()] [system.componentmodel.designercategoryattribute("code")] [system.xml.serialization.xmltypeattribute(namespace="example")] public partial class address {      [datamember(isrequired = false)]     private string addrtypecode;     [datamember(isrequired = false)]     private string streetname;      /// <remarks/>    [datamember(isrequired = false)]     public string addrtypecode {         {             return this.addrtypecode;         }         set {             this.addrtypecode = value;         }     }      /// <remarks/>     [datamember(isrequired = false)]     public string streetname {         {             return this.streetname;         }         set {             this.streetname = value;         }     } } 

there problem in application things work correct.


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

javascript - Get parameter of GET request -

javascript - Twitter Bootstrap - how to add some more margin between tooltip popup and element -