BA_Service_Haus
15 years agoRegular Contributor
minOccurs="0" - When is it set?
Hi,
one of our operations returns a sequence of values (list) which should at least have one entry.
To check this we used the Schema-Compliance-Assertion.
But even if the list/sequence was empty, the Assertion was passed.
So I checked the soapUI project file and found that following attribute is assigned to the sequence type: minOccurs="0"
Obviously this means, that 0 ore more entrys are acceptable. But in fact it should be 1 or more.
So could please you tell me, what does this attribute depend on? When do you set it to 0 (zero)? Or do you just read it from the interface description?
Best regards
Nico
one of our operations returns a sequence of values (list) which should at least have one entry.
To check this we used the Schema-Compliance-Assertion.
But even if the list/sequence was empty, the Assertion was passed.
So I checked the soapUI project file and found that following attribute is assigned to the sequence type: minOccurs="0"
Obviously this means, that 0 ore more entrys are acceptable. But in fact it should be 1 or more.
So could please you tell me, what does this attribute depend on? When do you set it to 0 (zero)? Or do you just read it from the interface description?
Best regards
Nico