wcf : string element nillable=“false”
问题 I have a client that is mandating that my required string elements have nillable="false" , currently all strings in the wsdl come out will nillable="true" , IE: <xs:element name="username" nillable="true" type="xs:string" /> How can i change the nillable="false" ?!? I will take any suggestions on how to do this? Am I the first person that has run into this? 回答1: How is this element defined in your data contract? If it's not already done, try adding a IsRequired=true clause to the data member