When we don't declare any minOccurs and maxOccurs in WSDL declaration is that taking default values? or is that ignore minOccurs and maxOccurs values?
Asked
Active
Viewed 317 times
1
-
1See [XML Schema minOccurs / maxOccurs default values](https://stackoverflow.com/questions/4821477/xml-schema-minoccurs-maxoccurs-default-values) – kjhughes Apr 17 '20 at 13:48
1 Answers
2
Yes thats true. The default values for minOccurs and maxOccurs are 1. Also not that when you provide only minOccurance attribute, then it can not be greater than 1, as the default value for maxOccurance is 1 and vice versa.
Also check the reference.

Rahul Tripathi
- 168,305
- 31
- 280
- 331
-
Thanks Rahul. That means it takes default values.. eventhough we don't mention – Asha Perera Mar 23 '15 at 09:34
-
-
Small clarification :-) If I have element like
I don't define any minOccurance and maxOccurance value still it takes default value. I don't want a mandotory value. It can be optional. In this case because of default value it bocomes a mandatory value??? – Asha Perera Mar 23 '15 at 09:39 -
@AshaPerera:- To keep it simple, its just that if you dont define it then it would take the default value. – Rahul Tripathi Mar 23 '15 at 09:45