键入{http://www.example.org/GETIDGI/}abstractBean已引用但未定义

时间:2017-02-21 15:32:43

标签: wsdl

有人可以告诉我,我错过了什么或做错了什么。 下面是我的wsdl。我试图从这个wsdl生成存根,但得到错误

java.io.IOException: Type {http://www.example.org/GETIDGI/}abstractBean is referenced but not defined.
    at org.apache.axis.wsdl.symbolTable.SymbolTable.checkForUndefined(SymbolTable.java:665)
    at org.apache.axis.wsdl.symbolTable.SymbolTable.add(SymbolTable.java:545)
    at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:518)
    at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:495)
    at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:361)
    at java.lang.Thread.run(Unknown Source)

WSDL文件

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
    xmlns:tns="http://www.example.org/GETIDGI/" 
    xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
    xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="DGI" targetNamespace="http://www.example.org/GETIDGI/" 
    xmlns:p="http://schemas.xmlsoap.org/wsdl/http/">
    <wsdl:types>
        <xsd:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://www.example.org/GETIDGI/" targetNamespace="http://www.example.org/GETIDGI/" version="1.0">
            <xsd:element name="getReleveRequest" nillable="false">
                <xsd:complexType>
                    <xsd:sequence>
                        <xsd:element name="SecurityHeader" type="tns:securityBean"
                            minOccurs="1" maxOccurs="1" nillable="false"></xsd:element>
                        <xsd:element name="AbstractHeader" type="tns:abstractBean"
                            minOccurs="1" maxOccurs="1" nillable="false"></xsd:element>
                        <xsd:element name="RequestData" type="tns:ArrayOfVignetteReq"
                            minOccurs="1" maxOccurs="1"></xsd:element>
                    </xsd:sequence>
                </xsd:complexType>
            </xsd:element>
            <xsd:element name="getReleveResponse" nillable="false">
                <xsd:complexType>
                    <xsd:sequence>
                        <xsd:element name="ResponseStatus" type="tns:statusBean"
                            minOccurs="1" maxOccurs="1" nillable="false"></xsd:element>
                        <xsd:element name="SecurityHeader" type="tns:securityBean"
                            minOccurs="1" maxOccurs="1" nillable="false"></xsd:element>
                        <xsd:element name="AbstractHeader" type="tns:abstractBean"
                            minOccurs="1" maxOccurs="1" nillable="false"></xsd:element>
                        <xsd:element name="TotalAmountHeader" type="tns:totalBean"
                            minOccurs="1" maxOccurs="1" nillable="false"></xsd:element>
                        <xsd:element name="ResponseData" type="tns:ArrayOfVignetteResp"
                            minOccurs="1" maxOccurs="1" nillable="false">
                            <xsd:annotation>
                                <xsd:documentation></xsd:documentation>
                            </xsd:annotation>
                        </xsd:element>
                    </xsd:sequence>
                </xsd:complexType>
            </xsd:element>
        </xsd:schema>
    </wsdl:types>
    <wsdl:message name="getReleveRequest">
        <wsdl:part element="tns:getReleveRequest" name="parameters" />
    </wsdl:message>
    <wsdl:message name="getReleveResponse">
        <wsdl:part element="tns:getReleveResponse" name="parameters" />
    </wsdl:message>
    <wsdl:portType name="DGI">
        <wsdl:operation name="getReleve">
            <wsdl:documentation>Demande d’un relevé d’une ou plusieurs vignettes
                pour but de règlement ou de consultation de
                l’état de paiement d’une
                vignette. Le partenaire envoi ce message afin
                d’afficher au client
                les
                informations lui permettant de payer sa vignette.
            </wsdl:documentation>
            <wsdl:input message="tns:getReleveRequest" />
            <wsdl:output message="tns:getReleveResponse" />
        </wsdl:operation>
    </wsdl:portType>
    <wsdl:binding name="DGISOAP" type="tns:DGI">
        <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" />
        <wsdl:operation name="getReleve">
            <soap:operation soapAction="http://www.example.org/GETIDGI/getReleve" style="document" />
            <wsdl:input>
                <soap:body use="literal" />
            </wsdl:input>
            <wsdl:output>
                <soap:body use="literal" />
            </wsdl:output>
        </wsdl:operation>
    </wsdl:binding>
    <wsdl:service name="DGI">
        <wsdl:port binding="tns:DGISOAP" name="DGISOAP">
            <soap:address location="http://localhost:8080" />
        </wsdl:port>
    </wsdl:service>
</wsdl:definitions>

0 个答案:

没有答案