From: Dan H. <dan...@uk...> - 2004-06-24 10:58:43
|
Hope this isn't too offtopic, but I'm curious why people use WSDL arrays. All it seem to do is add extra overhead in the form of <item> </item> wrapper elements to everything, when you can get a similar result without the overhead by just allowing maxOccurs="unbounded". I'm sure I'm missing something glaringly obvious, but it's not clicked yet... e.g. <xsd:complexType name="keyValPair"> <xsd:all> <xsd:element name="key" value="xsd:string" /> <xsd:element name="value" value="xsd:string" /> </xsd:all> </xsd:complexType> <xsd:complexType name="fakeArrayOfPairs"> <xsd:sequence> <xsd:element minOccurs="0" maxOccurs="unbounded" name="pair" type="tns:keyValPair" /> </xsd:sequence> </xsd:sequence> would give you a "..... <pair><key>somekey</key><value>somevalue</value></pair> <pair>...." etc Anyone steer me towards the light? Thanks -- Dan |