Flash Builder 4.6编译时出现"soap:Array"错误的解决
flash builder 4.6不允许 wsdl文件中import xsd文件,如果import,会提示 "referenced file error"之类的,只好用XMLSPY重新小心翼翼的重写了一份WSDL文件,最后发现,fb居然不支持soap:Array,而且wsdl2java对soap:Array的复杂类型定义时,也存在问题。只好又从WSDL文件中去掉 soap:Array类型的定义。参考以下方法:
修改前代码:
1 <xsd:complexType name="_BooksRecordList"> <xsd:complexContent> <xsd:restriction base="soapenc:Array"> <xsd:attribute ref="soapenc:arrayType" wsdl:arrayType="tns:BooksRecord[]"/> </xsd:restriction> </xsd:complexContent></xsd:complexType>
修改后代码:
1 <xsd:complexType name="_BooksRecordList"> <xsd:sequence> <xsd:element name="BooksRecord" type="tns:BooksRecord" minOccurs="0" maxOccurs="unbounded"/> </xsd:sequence></xsd:complexType>