Thank you for posing in the MSDN newsgroup.
As for the WebMethod Parameter object's XSD Schema description, it will
follow the following rule:
1. If the paramter is of value type, such as those primitive types, int,
long ,.... or some other structs like Datetime, the minOccurs for element
in <sequence> is assigned to "1". This is because value type should always
has a certain valid instance existed.
2.If the parameter is of reference type, such as string, or other classes,
the minOccurs attribute for the element will always be 0, because for
reference type in .NET, it could be set to "Null" which correspond to the
minOccurs=0.
so for your scenario, if you do want to make the paramter be declared as
minOccurs=1 in the XSD schema, you may consider use a ValueType class(in c#
, use "struct" keyword to declare the type) to encapsulate that
ArrayObject.
Thanks & Regards,
Steven Cheng
Microsoft Online Community Support
==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.