使用wsimport从WSDL创建Java类时出错

时间:2019-04-01 14:41:45

标签: wsdl wsdl2java

当我尝试使用wsimport从WSDL生成Java类时,出现以下错误:

{
    <?xml version="1.0" encoding="UTF-8"?>
    <!-- Published by JAX-WS RI (http://jax-ws.java.net). RI's version is JAX-WS RI 2.2.11-b150616.1732 svn-revision#a247ba216861f2c0baac9a3657c5690bce0c744d. -->
    <wsdl:definitions targetNamespace="http://ouaf.oracle.com/webservices/cm/CMOimUserMaintenance" name="CMOimUserMaintenance" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:ouaf="http://ouaf.oracle.com/" xmlns:tns="http://ouaf.oracle.com/webservices/cm/CMOimUserMaintenance">
    <wsdl:documentation>CMOimUserMaintenance version 2: OIM User Maintenance</wsdl:documentation>
    <wsdl:types>
    <xsd:schema targetNamespace="http://ouaf.oracle.com/" xmlns:ouaf="http://ouaf.oracle.com/" elementFormDefault="unqualified" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <xsd:element name="Fault">
    <xsd:complexType>
    <xsd:all>
    <xsd:element name="ResponseStatus" type="xsd:string"/>
    <xsd:element name="ResponseCode" type="xsd:int"/>
    <xsd:element name="ResponseText" type="xsd:string"/>
    <xsd:element name="ResponseData" minOccurs="0">
    <xsd:complexType>
    <xsd:attribute name="parm1" type="xsd:string"/>
    <xsd:attribute name="parm2" type="xsd:string"/>
    <xsd:attribute name="parm3" type="xsd:string"/>
    <xsd:attribute name="parm4" type="xsd:string"/>
    <xsd:attribute name="parm5" type="xsd:string"/>
    <xsd:attribute name="parm6" type="xsd:string"/>
    <xsd:attribute name="parm7" type="xsd:string"/>
    <xsd:attribute name="parm8" type="xsd:string"/>
    <xsd:attribute name="parm9" type="xsd:string"/>
    <xsd:attribute name="text" type="xsd:string"/>
    <xsd:attribute name="category" type="xsd:string"/>
    <xsd:attribute name="numParm" type="xsd:int"/>
    <xsd:attribute name="number" type="xsd:int"/>
    </xsd:complexType>
    </xsd:element>
    <xsd:element name="ServerMessage" minOccurs="0">
    <xsd:complexType>
    <xsd:all>
    <xsd:element name="Category" type="xsd:string"/>
    <xsd:element name="Number" type="xsd:string"/>
    <xsd:element name="CallSequence" type="xsd:string"/>
    <xsd:element name="ProgramName" type="xsd:string"/>
    <xsd:element name="Text" type="xsd:string"/>
    <xsd:element name="Description" type="xsd:string"/>
    <xsd:element name="Table" type="xsd:string"/>
    <xsd:element name="Field" type="xsd:string"/>
    </xsd:all>
    </xsd:complexType>
    </xsd:element>
    </xsd:all>
    </xsd:complexType>
    </xsd:element>
    <xsd:simpleType name="money">
    <xsd:restriction base="xsd:decimal"/>
    </xsd:simpleType>
    <xsd:simpleType name="listAction">
    <xsd:restriction base="xsd:token">
    <xsd:enumeration value="delete"/>
    <xsd:enumeration value="add"/>
    <xsd:enumeration value="update"/>
    </xsd:restriction>
    </xsd:simpleType>
    </xsd:schema>
    <xsd:schema targetNamespace="http://ouaf.oracle.com/webservices/cm/CMOimUserMaintenance" elementFormDefault="qualified" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <xsd:element name="Modify">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="user">
    <xsd:simpleType>
    <xsd:restriction base="xsd:string">
    <xsd:maxLength value="8"/>
    </xsd:restriction>
    </xsd:simpleType>
    </xsd:element>
    <xsd:element name="language">
    <xsd:simpleType>
    <xsd:restriction base="xsd:string">
    <xsd:maxLength value="3"/>
    </xsd:restriction>
    </xsd:simpleType>
    </xsd:element>
    <xsd:element name="firstName">
    <xsd:simpleType>
    <xsd:restriction base="xsd:string">
    <xsd:maxLength value="50"/>
    </xsd:restriction>
    </xsd:simpleType>
    </xsd:element>
    <xsd:element name="lastName">
    <xsd:simpleType>
    <xsd:restriction base="xsd:string">
    <xsd:maxLength value="50"/>
    </xsd:restriction>
    </xsd:simpleType>
    </xsd:element>
    <xsd:element name="tenderSource" minOccurs="0">
    <xsd:simpleType>
    <xsd:restriction base="xsd:string">
    <xsd:maxLength value="8"/>
    </xsd:restriction>
    </xsd:simpleType>
    </xsd:element>
    <xsd:element name="displayProfileCode">
    <xsd:simpleType>
    <xsd:restriction base="xsd:string">
    <xsd:maxLength value="10"/>
    </xsd:restriction>
    </xsd:simpleType>
    </xsd:element>
    <xsd:element name="toDoEntriesAge1">
    <xsd:simpleType>
    <xsd:restriction base="xsd:decimal">
    <xsd:minInclusive value="0"/>
    <xsd:maxExclusive value="999"/>
    </xsd:restriction>
    </xsd:simpleType>
    </xsd:element>
    <xsd:element name="toDoEntriesAge2">
    <xsd:simpleType>
    <xsd:restriction base="xsd:decimal">
    <xsd:minInclusive value="0"/>
    <xsd:maxExclusive value="999"/>
    </xsd:restriction>
    </xsd:simpleType>
    </xsd:element>
    <xsd:element name="accessGroup" minOccurs="0">
    <xsd:simpleType>
    <xsd:restriction base="xsd:string">
    <xsd:maxLength value="12"/>
    </xsd:restriction>
    </xsd:simpleType>
    </xsd:element>
    <xsd:element name="userType" minOccurs="0" nillable="true">
    <xsd:simpleType>
    <xsd:restriction base="xsd:string">
    <xsd:enumeration value="TMPL"/>
    </xsd:restriction>
    </xsd:simpleType>
    </xsd:element>
    <xsd:element name="portalsProfileUserId" minOccurs="0">
    <xsd:simpleType>
    <xsd:restriction base="xsd:string">
    <xsd:maxLength value="8"/>
    </xsd:restriction>
    </xsd:simpleType>
    </xsd:element>
    <xsd:element name="favoritesProfileUserId" minOccurs="0">
    <xsd:simpleType>
    <xsd:restriction base="xsd:string">
    <xsd:maxLength value="8"/>
    </xsd:restriction>
    </xsd:simpleType>
    </xsd:element>
    <xsd:element name="emailAddress" minOccurs="0">
    <xsd:simpleType>
    <xsd:restriction base="xsd:string">
    <xsd:maxLength value="254"/>
    </xsd:restriction>
    </xsd:simpleType>
    </xsd:element>
    <xsd:element name="dashboardWidth" minOccurs="0" default="200">
    <xsd:simpleType>
    <xsd:restriction base="xsd:string">
    <xsd:maxLength value="8"/>
    </xsd:restriction>
    </xsd:simpleType>
    </xsd:element>
    <xsd:element name="homeNavigationOption" minOccurs="0">
    <xsd:simpleType>
    <xsd:restriction base="xsd:string">
    <xsd:maxLength value="32"/>
    </xsd:restriction>
    </xsd:simpleType>
    </xsd:element>
    <xsd:element name="userEnable" nillable="true">
    <xsd:simpleType>
    <xsd:restriction base="xsd:string">
    <xsd:enumeration value="DSBL"/>
    <xsd:enumeration value="ENBL"/>
    </xsd:restriction>
    </xsd:simpleType>
    </xsd:element>
    <xsd:element name="timeZone" minOccurs="0">
    <xsd:simpleType>
    <xsd:restriction base="xsd:string">
    <xsd:maxLength value="10"/>
    </xsd:restriction>
    </xsd:simpleType>
    </xsd:element>
    <xsd:element name="externalUserId">
    <xsd:simpleType>
    <xsd:restriction base="xsd:string">
    <xsd:maxLength value="256"/>
    </xsd:restriction>
    </xsd:simpleType>
    </xsd:element>
    <xsd:element name="shouldDisplayAllPremises" type="xsd:boolean" minOccurs="0" nillable="true"/>
    <xsd:element name="dataAccessUser" minOccurs="0" maxOccurs="unbounded">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="dataAccessRole" minOccurs="0">
    <xsd:simpleType>
    <xsd:restriction base="xsd:string">
    <xsd:maxLength value="12"/>
    </xsd:restriction>
    </xsd:simpleType>
    </xsd:element>
    <xsd:element name="expireDate" type="xsd:date" minOccurs="0" nillable="true"/>
    </xsd:sequence>
    <xsd:attribute name="action" type="ouaf:listAction"/>
    </xsd:complexType>
    </xsd:element>
    <xsd:element name="roleUser" minOccurs="0" maxOccurs="unbounded">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="toDoRole" minOccurs="0">
    <xsd:simpleType>
    <xsd:restriction base="xsd:string">
    <xsd:maxLength value="10"/>
    </xsd:restriction>
    </xsd:simpleType>
    </xsd:element>
    </xsd:sequence>
    <xsd:attribute name="action" type="ouaf:listAction"/>
    </xsd:complexType>
    </xsd:element>
    <xsd:element name="userNavigationLink" minOccurs="0" maxOccurs="unbounded">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="navigationOption" minOccurs="0">
    <xsd:simpleType>
    <xsd:restriction base="xsd:string">
    <xsd:maxLength value="32"/>
    </xsd:restriction>
    </xsd:simpleType>
    </xsd:element>
    <xsd:element name="sortSequence" minOccurs="0">
    <xsd:simpleType>
    <xsd:restriction base="xsd:decimal">
    <xsd:minExclusive value="-99"/>
    <xsd:maxExclusive value="99"/>
    </xsd:restriction>
    </xsd:simpleType>
    </xsd:element>
    </xsd:sequence>
    <xsd:attribute name="action" type="ouaf:listAction"/>
    </xsd:complexType>
    </xsd:element>
    <xsd:element name="userPortal" minOccurs="0" maxOccurs="unbounded">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="portal" minOccurs="0">
    <xsd:simpleType>
    <xsd:restriction base="xsd:string">
    <xsd:maxLength value="12"/>
    </xsd:restriction>
    </xsd:simpleType>
    </xsd:element>
    <xsd:element name="userZone" minOccurs="0" maxOccurs="unbounded">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="portal" minOccurs="0">
    <xsd:simpleType>
    <xsd:restriction base="xsd:string">
    <xsd:maxLength value="12"/>
    </xsd:restriction>
    </xsd:simpleType>
    </xsd:element>
    <xsd:element name="zone" minOccurs="0">
    <xsd:simpleType>
    <xsd:restriction base="xsd:string">
    <xsd:maxLength value="12"/>
    </xsd:restriction>
    </xsd:simpleType>
    </xsd:element>
    <xsd:element name="sortSequence" minOccurs="0">
    <xsd:simpleType>
    <xsd:restriction base="xsd:decimal">
    <xsd:minExclusive value="-99"/>
    <xsd:maxExclusive value="99"/>
    </xsd:restriction>
    </xsd:simpleType>
    </xsd:element>
    <xsd:element name="canDisplay" type="xsd:boolean" minOccurs="0" nillable="true"/>
    <xsd:element name="isZoneInitiallyCollapsed" type="xsd:boolean" minOccurs="0" nillable="true"/>
    <xsd:element name="zoneRefreshPeriod" minOccurs="0">
    <xsd:simpleType>
    <xsd:restriction base="xsd:decimal">
    <xsd:minInclusive value="0"/>
    <xsd:maxExclusive value="99999"/>
    </xsd:restriction>
    </xsd:simpleType>
    </xsd:element>
    <xsd:element name="userZoneDataArea" minOccurs="0">
    <xsd:simpleType>
    <xsd:restriction base="xsd:string">
    <xsd:maxLength value="1073741824"/>
    </xsd:restriction>
    </xsd:simpleType>
    </xsd:element>
    </xsd:sequence>
    <xsd:attribute name="action" type="ouaf:listAction"/>
    </xsd:complexType>
    </xsd:element>
    </xsd:sequence>
    <xsd:attribute name="action" type="ouaf:listAction"/>
    </xsd:complexType>
    </xsd:element>
    <xsd:element name="userScript" minOccurs="0" maxOccurs="unbounded">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="script" minOccurs="0">
    <xsd:simpleType>
    <xsd:restriction base="xsd:string">
    <xsd:maxLength value="12"/>
    </xsd:restriction>
    </xsd:simpleType>
    </xsd:element>
    <xsd:element name="sortSequence" minOccurs="0">
    <xsd:simpleType>
    <xsd:restriction base="xsd:decimal">
    <xsd:minExclusive value="-99"/>
    <xsd:maxExclusive value="99"/>
    </xsd:restriction>
    </xsd:simpleType>
    </xsd:element>
    </xsd:sequence>
    <xsd:attribute name="action" type="ouaf:listAction"/>
    </xsd:complexType>
    </xsd:element>
    <xsd:element name="userCharacteristic" minOccurs="0" maxOccurs="unbounded">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="characteristicType" minOccurs="0">
    <xsd:simpleType>
    <xsd:restriction base="xsd:string">
    <xsd:maxLength value="8"/>
    </xsd:restriction>
    </xsd:simpleType>
    </xsd:element>
    <xsd:element name="sequence" minOccurs="0">
    <xsd:simpleType>
    <xsd:restriction base="xsd:decimal">
    <xsd:minExclusive value="-999"/>
    <xsd:maxExclusive value="999"/>
    </xsd:restriction>
    </xsd:simpleType>
    </xsd:element>
    <xsd:element name="characteristicValue" minOccurs="0">
    <xsd:simpleType>
    <xsd:restriction base="xsd:string">
    <xsd:maxLength value="16"/>
    </xsd:restriction>
    </xsd:simpleType>
    </xsd:element>
    <xsd:element name="adhocCharacteristicValue" minOccurs="0">
    <xsd:simpleType>
    <xsd:restriction base="xsd:string">
    <xsd:maxLength value="254"/>
    </xsd:restriction>
    </xsd:simpleType>
    </xsd:element>
    <xsd:element name="characteristicValueForeignKey1" minOccurs="0">
    <xsd:simpleType>
    <xsd:restriction base="xsd:string">
    <xsd:maxLength value="50"/>
    </xsd:restriction>
    </xsd:simpleType>
    </xsd:element>
    </xsd:sequence>
    <xsd:attribute name="action" type="ouaf:listAction"/>
    </xsd:complexType>
    </xsd:element>
    <xsd:element name="userGroupUser" minOccurs="0" maxOccurs="unbounded">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="userGroup" minOccurs="0">
    <xsd:simpleType>
    <xsd:restriction base="xsd:string">
    <xsd:maxLength value="20"/>
    </xsd:restriction>
    </xsd:simpleType>
    </xsd:element>
    <xsd:element name="expirationDate" type="xsd:date" minOccurs="0" nillable="true"/>
    </xsd:sequence>
    <xsd:attribute name="action" type="ouaf:listAction"/>
    </xsd:complexType>
    </xsd:element>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    </xsd:schema>
    </wsdl:types>
    <!-- wsdl:message elements describe potential transactions -->
    <!-- request for operation Modify -->
    <wsdl:message name="ModifyRequest">
    <wsdl:part name="body" element="tns:Modify"/>
    </wsdl:message>
    <!-- response for operation Modify -->
    <wsdl:message name="ModifyResponse">
    <wsdl:part name="body" element="tns:Modify"/>
    </wsdl:message>
    <!-- fault type -->
    <wsdl:message name="Fault">
    <wsdl:part name="fault" element="ouaf:Fault"/>
    </wsdl:message>
    <!-- wsdl:portType describes messages in an operation -->
    <wsdl:portType name="CMOimUserMaintenancePortType">
    <wsdl:documentation>CMOimUserMaintenance version 2: OIM User Maintenance</wsdl:documentation>
    <wsdl:operation name="Modify">
    <wsdl:input message="tns:ModifyRequest"/>
    <wsdl:output message="tns:ModifyResponse"/>
    <wsdl:fault name="fault" message="tns:Fault"/>
    </wsdl:operation>
    </wsdl:portType>
    <!-- wsdl:binding states a serialization protocol for this service -->
    <wsdl:binding name="CMOimUserMaintenanceSoapBinding" type="tns:CMOimUserMaintenancePortType">
    <!-- leverage off soap:binding document style @@@(no wsdl:foo pointing at the soap binding) -->
    <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
    <!-- semi-opaque container of network transport details classed by soap:binding above @@@ -->
    <wsdl:operation name="Modify">
    <!-- again bind to SOAP? @@@ -->
    <soap:operation soapAction="http://10.128.9.9/webservices/CMOimUserMaintenance#Modify"/>
    <!-- further specify that the messages in the wsdl:operation "Modify" use SOAP? @@@ -->
    <wsdl:input>
    <soap:body use="literal"/>
    </wsdl:input>
    <wsdl:output>
    <soap:body use="literal"/>
    </wsdl:output>
    <wsdl:fault name="fault">
    <soap:fault name="fault" use="literal"/>
    </wsdl:fault>
    </wsdl:operation>
    </wsdl:binding>
    <!-- wsdl:service names a new service "CMOimUserMaintenanceService" -->
    <wsdl:service name="CMOimUserMaintenanceService">
    <wsdl:documentation>CMOimUserMaintenance version 2: OIM User Maintenance</wsdl:documentation>
    <!-- connect it to the binding "CMOimUserMaintenanceSoapBinding" above -->
    <wsdl:port name="CMOimUserMaintenancePort" binding="tns:CMOimUserMaintenanceSoapBinding">
    <!-- give the binding a network address -->
    <soap:address location="http://10.128.9.9:7000/spl/webservices/CMOimUserMaintenance"/>
    </wsdl:port>
    </wsdl:service>
    </wsdl:definitions>

    }

以下是我在执行命令时收到的错误警告:

src-resolve: Cannot resolve the name 'ouaf:listAction' to a(n) 'type definition' component.
  line 204 of file:/C:/Users/ua56477/SOAP/CMOimUserMaintenance.wsdl#types?schema2

[WARNING] src-resolve: Cannot resolve the name 'ouaf:listAction' to a(n) 'simpleType definition' component.
  line 204 of file:/C:/Users/ua56477/SOAP/CMOimUserMaintenance.wsdl#types?schema2

0 个答案:

没有答案