• Post Reply Bookmark Topic Watch Topic
  • New Topic

Ensuring an array is compliant with Basic Profile 1.1  RSS feed

 
Luke Murphy
Ranch Hand
Posts: 300
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok, the basic profile is clear that to use arrays:
- We should not use wsdl:arrayType or soapenc:arrayType.
- We should not name it something like ArrayOfXXX

So we define it a sequence in a complex type. Suppose we want an array of longs, we do:

<xsd:complexType name="longArray">
<xsd:sequence>
<element name="item" minOccurs="0" maxOccurs="5" type="xsd:long"/>
</xsd:sequence>
</xsd>

Do we have to include the minOccurs and maxOccurs properties?

Thanks
 
Dan Drillich
Ranch Hand
Posts: 1183
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Right, the BP says -


R2110 In a DESCRIPTION, declarations MUST NOT extend or restrict the soapenc:Array type.
R2111 In a DESCRIPTION, declarations MUST NOT use wsdl:arrayType attribute in the type declaration.
R2112 In a DESCRIPTION, elements SHOULD NOT be named using the convention ArrayOfXXX.
R2113 An ENVELOPE MUST NOT include the soapenc:arrayType attribute.





Do we have to include the minOccurs and maxOccurs properties?


I doubt it.

Regards,
Dan
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!