Complex data types, such as struct and array, consist of several parts. A struct data type is a compound type whose parts are identified only by their name.

In the C++ code example, a sample struct definition for AllStudent is defined. The student variable is serialized into a SOAP message payload by encoding it as an XML struct as displayed in the XML code example.