我接着又提出以下内容:minOccurs=“0”
和nillable=“true”
。
I was reading this article and now in my WSDL I m not sure if using both is worth it. The article gives a good example of representing arrays where you might have null values interspersed throughout, as this can t be done with just minOccurs="0"
. Now, the convention I ve been going with is that if an element isn t optional it is not nillable.
The difference as I understand it, and where my question lies, is that by applying the nillable property to an element, I am saying that you can pass in the XSD equivalent of a NULL value? Otherwise, an element without the nillable property, has to have a value within the restriction placed on it?