WebService monOccurs and maxOccurs Without Nillable [modified]
-
My webservice takes in a couple of parameters, some are integers, some are strings and some are self defined structs. Now the integers' minOccurs and maxOccurs are set appropriately to 1. But with the strings, in both webmethods and structures, the minOccurs are set to 0. Is there a way to set them to 1 without setting ? I don't want them to be optional and I don't want them to be null-able. EDIT - In one webmethod, one of the parameters is an array of a self defined structure. Is it possible to set the minOccurs number? I know it can't be done with because that gives an error in my webservice. If I look at the WSDL description of my structures, I see that the minOccurs of the string fields is set to 0. Is there a way to change that? I can provide code samples if necessary.
modified on Thursday, June 30, 2011 6:16 AM