- complex_content = complex_type.appendChild(types.createElement("xsd:list"))
- complex_content.setAttribute("itemType",inner_type)
+ complex_content = complex_type.appendChild(types.createElement("xsd:complexContent"))
+ restriction = complex_content.appendChild(types.createElement("xsd:restriction"))
+ restriction.setAttribute("base","soapenc:Array")
+ attribute = restriction.appendChild(types.createElement("xsd:attribute"))
+ attribute.setAttribute("ref","soapenc:arrayType")
+ attribute.setAttribute("wsdl:arrayType","%s[]"%inner_type)
+