schema validation in webmethods 8

my xml is as follows
—>document
—>document
—>doclist

—>doclist


i use a schema validation whenever i pass values to the above document in webMethods 8,But Isvalid is true even when i pass multiple occurrences for which is actually a document.
My document is normal IS document and i am using pub.schema validation in wm 8 .
Is there any addition property settings need for validation to be failed when any structure mismatch occurs .

Please advice .
Thanks
Pran

i tried generatng xsd using create XSD ,and could see no settings as maxoccurs =1 for .
Is there any propert settings to set a document as maxoccurs-1 inside IS document
or do i have to manually edit xsd and then validate against xsd?i tried generatng xsd using create XSD ,and could see no settings as maxoccurs =1 for .
Is there any propert settings to set a document as maxoccurs-1 inside IS document
or do i have to manually edit xsd and then validate against xsd?
please advice

Pran, ideally it should reject with possible message like below.
[ISC.0082.XXXX] Dimension mismatch, Single item expected

A document is not an array, in any case it shouldn’t allow more than one document to be appearing in the input!

sample files constructed for testing are as follows

  1. A document type is created and is validated against the following sample
<?xml version="1.0"?> list1 - item1 list1 - item2
<list1> 
<listItem> list2 - item1 </listItem>
<listItem> list2 - item2  </listItem>
</list1>
  1. Above document type is also tested with below sample which resulted in “isvalid” to false! along with the error described above!
<?xml version="1.0"?> list1 - item1 list1 - item2 list2 - item1 list2 - item2 list1 - item1 list1 - item2 list2 - item1 list2 - item2

Hi PRP,

I am doing the schema validation against xml schema which was got created when i imported wsdl file. What ever the values that i am going to give input it is giving no errors. Even though i was tried with providing wrong datetime format. In case of document type validation instead of schema validation it is behaving correctly. While i am using schema then it is not giving validation error. I am doing in 8.2 v. Is any body observed same behaviour? i am using pub.schema:validate service.

Thanks,
Raj