Like I mentioned in the thread you referenced, there is no direct mapping of ArrayOfString
. So it is essentially treated as a structure, just like any other complex type. If you look at the wsdl, ArrayOfString
contains a single key named string
, whose value is an array of type="s:string"
:
<s:complexType name="ArrayOfString">
<s:sequence>
<s:element minOccurs="0" maxOccurs="unbounded"
name="string" nillable="true" type="s:string" />
</s:sequence>
</s:complexType>
So the CF code works because it creates a structure with the correct key name (string
) and value type (array of strings).
root.string = [ arrayOfStrings ];
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…