使用cxf的wsdl2java是遇到的有关问题

使用cxf的wsdl2java是遇到的问题
对与同一个wsdl文件,我尝试过使用axis2是可以正常转过来java代码。
但是,当使用cxf时,出现了报错:
WSDLToJava Error: Thrown by JAXB:
Thrown by JAXB:
undefined simple or complex type 'soapenc:Array'

wsdl的出错部分:
<s:schema targetNamespace="http://iamsweb.gmcc.net/WS/AbstractTypes">
      <s:import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
      <s:complexType name="StringArray">
        <s:complexContent mixed="false">
          <s:restriction base="soapenc:Array">
            <s:sequence>
              <s:element minOccurs="0" maxOccurs="unbounded" name="String" type="s:string" />
            </s:sequence>
          </s:restriction>
        </s:complexContent>
      </s:complexType>
    </s:schema>

这时,只需增加schemaLocation。如
<s:schema targetNamespace="http://iamsweb.gmcc.net/WS/AbstractTypes">
      <s:import namespace="http://schemas.xmlsoap.org/soap/encoding/" schemaLocation="http://schemas.xmlsoap.org/soap/encoding/"/>
      <s:complexType name="StringArray">
        <s:complexContent mixed="false">
          <s:restriction base="soapenc:Array">
            <s:sequence>
              <s:element minOccurs="0" maxOccurs="unbounded" name="String" type="s:string" />
            </s:sequence>
          </s:restriction>
        </s:complexContent>
      </s:complexType>
    </s:schema>
1 楼 fanfubao 2012-05-25  
博主有SSH2+Extjs+spring security的源码吗?我整合的好久,也没把spring security整合进去,总是有错,想看看你是怎么配置的。