执行wsimport时出错。我正在关注有关传输阵列类型的链接http://www.phpeveryday.com/articles/Web-Services-WSDL-Array-Array-Type-P517.html。可能是什么问题?
[ERROR] undefined attribute 'soapenc:arrayType'
XSD文件:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<xsd:schema version="1.0" targetNamespace="http://com.company.hplistener.service/"
xmlns:tns="http://com.company.hplistener.service/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soapenc="http://schemas.xmlsoap.org/wsdl/encoding/"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
>
<xsd:complexType name="PrinterInsertInfo">
<xsd:sequence>
<xsd:element minOccurs="0" name="percLevelBlack" type="xsd:long" />
<xsd:element minOccurs="0" name="percLevelCyan" type="xsd:long" />
<xsd:element minOccurs="0" name="percLevelYellow" type="xsd:long" />
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="ArrayOfPrinterInsertInfo">
<xsd:complexContent>
<xsd:restriction base="tns:PrinterInsertInfo">
<xsd:attribute ref="soapenc:arrayType" wsdl:arrayType="tns:PrinterInsertInfo[]"/>
</xsd:restriction>
</xsd:complexContent>
</xsd:complexType>