Click here to Skip to main content
15,662,459 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have used [XmlElement(isnullable=true)] attribute to all my fields while defining.
But when i generate a wsdl file the element minOccurs=0 is being generated.

I want the value to be minOccurs=1.

what should i do?
Updated 8-Nov-11 22:00pm

1 solution

If IsNullable=true, then minOccurs=0. IsNullable means it can either exist or not. minOccurs means it can either exist or not. If you want the generated WSDL to have minOccurs=1, set IsNullable=false in your code.
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900