An array differs from a struct in using different naming conventions for their parts. A struct uses names to identify the parts while an array uses ordinal positions.

In SOAP encoding, the array type is indicated by the xsi:type attribute. The namespace associated with an array type is as displayed in the code example. The SOAP-ENC:arrayType attribute is used to declare the type and size of the data members of the array.

In the code example, a simple array of five integers is declared. The num element is a SOAP array and indicates that it contains five elements of type integer.