Hi,
I'm using Zend_Soap_AutoDiscover to generate a WSDL based on my php class. But how do I get minOccurs="1" maxOccurs="1" in my XML?
Example:
<s:element minOccurs="1" maxOccurs="1" name="Huisnummer" type="s:int" />
<s:element minOccurs="0" maxOccurs="1" name="Brinnummer" type="s:string" />
also, how do I add restrictions? as in this example:
<xs:element id="id" maxOccurs="1" minOccurs="1" name="id">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="8"/>
<xs:minLength value="8"/>
<xs:pattern value="[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
I assume I have to add this in the phpDoc parts of my class, but I cant figure out how! Any help would be greatly appreciated