"wcf : string element nillable="false"" Code Answer


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 attribute:

class yourdatastructure

   string username;


other than that, i'm not aware of any way to influence the xsd being rendered from your wcf data contract, short of writing your own wsdlexporter extension (which is totally possible - just seems a bit overkill here).

By L.Grozinger on July 9 2022

Answers related to “wcf : string element nillable="false"”

Only authorized users can answer the Search term. Please sign in first, or register a free account.