0

执行 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> 
4

0 回答 0