function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
lalilali 

how to define the maxOccurs for a list<string> in wsdl

I have a webservice called RetrieveAccountInfo defined as follows:
webservice static String RetrieveAccountInfo (List<String> AccIdsList){........}

when creating the WSDL, I get it as follows:
<xsd:elment name="AccIdsList " minOccurs="0" maxOccurs="unbounded" type="xsd:string" nillable="true"/>

I want  to define the maxOccurs to a certain number? How do I do that?

I know that there is no limit on the number of items a collection can hold.
but for security reasons , I  want to define the list size and accordingly the maxOccurs size changes.

Any suggestions...


thanks in advance ...