Element is referenced but not defined

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • luckyjun85
    New Member
    • Feb 2012
    • 1

    #1

    Element is referenced but not defined

    Hi, I get this error when i try to run wsdl2java. Currently i'm using Axis 1_3


    java.io.IOExcep tion: Element Service is referenced but not defined.
    at org.apache.axis .wsdl.symbolTab le.SymbolTable. checkForUndefin ed(SymbolTable. java:670)
    at org.apache.axis .wsdl.symbolTab le.SymbolTable. add(SymbolTable .java:545)
    at org.apache.axis .wsdl.symbolTab le.SymbolTable. populate(Symbol Table.java:518)
    at org.apache.axis .wsdl.symbolTab le.SymbolTable. populate(Symbol Table.java:495)
    at org.apache.axis .wsdl.gen.Parse r$WSDLRunnable. run(Parser.java :361)



    Here is my WSDL

    *************** *************** *************** ***************
    <?xml version="1.0" encoding="UTF-8" standalone="no" ?>
    <wsdl:definitio ns xmlns:soap="htt p://schemas.xmlsoap .org/wsdl/soap/" xmlns:tns="http ://www.tm.com.my/hsbb/eai/getCurrentBillS tatement/" xmlns:wsdl="htt p://schemas.xmlsoap .org/wsdl/" xmlns:xsd="http ://www.w3.org/2001/XMLSchema" xmlns:ns="http://schemas.xmlsoap .org/soap/encoding/" name="getCurren tBillStatement" targetNamespace ="http://www.tm.com.my/hsbb/eai/getCurrentBillS tatement/">
    <wsdl:types>
    <xsd:schema>
    <xsd:element name="BusinessE vent">
    <xsd:simpleType >
    <xsd:restrictio n base="xsd:strin g">
    <xsd:maxLengt h value="100"/>
    </xsd:restriction >
    </xsd:simpleType>
    </xsd:element>
    <xsd:element name="ServiceId ">
    <xsd:simpleType >
    <xsd:restrictio n base="xsd:strin g">
    <xsd:maxLengt h value="100"/>
    </xsd:restriction >
    </xsd:simpleType>
    </xsd:element>
    <xsd:element name="ErrorMess age">
    <xsd:simpleType >
    <xsd:restrictio n base="xsd:strin g">
    <xsd:maxLengt h value="100"/>
    </xsd:restriction >
    </xsd:simpleType>
    </xsd:element>
    <xsd:element name="TotalAmou ntOutstanding">
    <xsd:simpleType >
    <xsd:restrictio n base="xsd:strin g">
    <xsd:maxLengt h value="10"/>
    </xsd:restriction >
    </xsd:simpleType>
    </xsd:element>
    <xsd:element name="Adjustmen t">
    <xsd:simpleType >
    <xsd:restrictio n base="xsd:strin g">
    <xsd:maxLengt h value="10"/>
    </xsd:restriction >
    </xsd:simpleType>
    </xsd:element>
    <xsd:element name="PreviousP ayment">
    <xsd:simpleType >
    <xsd:restrictio n base="xsd:strin g">
    <xsd:maxLengt h value="10"/>
    </xsd:restriction >
    </xsd:simpleType>
    </xsd:element>
    <xsd:element name="TotalDue" >
    <xsd:simpleType >
    <xsd:restrictio n base="xsd:strin g">
    <xsd:maxLengt h value="10"/>
    </xsd:restriction >
    </xsd:simpleType>
    </xsd:element>
    <xsd:element name="PaymentDu eDate">
    <xsd:simpleType >
    <xsd:restrictio n base="xsd:strin g">
    <xsd:maxLengt h value="10"/>
    </xsd:restriction >
    </xsd:simpleType>
    </xsd:element>
    <xsd:element name="CurrencyC ode">
    <xsd:simpleType >
    <xsd:restrictio n base="xsd:strin g">
    <xsd:maxLengt h value="10"/>
    </xsd:restriction >
    </xsd:simpleType>
    </xsd:element>
    <xsd:element name="ServiceDe scription">
    <xsd:simpleType >
    <xsd:restrictio n base="xsd:strin g">
    <xsd:maxLengt h value="50"/>
    </xsd:restriction >
    </xsd:simpleType>
    </xsd:element>
    <xsd:element name="ServiceCh arges">
    <xsd:simpleType >
    <xsd:restrictio n base="xsd:strin g">
    <xsd:maxLengt h value="10"/>
    </xsd:restriction >
    </xsd:simpleType>
    </xsd:element>
    <xsd:element name="Request">
    <xsd:complexTyp e>
    <xsd:sequence >
    <xsd:element ref="BusinessEv ent" minOccurs="0"/>
    <xsd:element ref="ServiceId" minOccurs="0"/>
    </xsd:sequence>
    </xsd:complexType >
    </xsd:element>
    <xsd:element name="getCurren tBillStatement" >
    <xsd:complexTyp e>
    <xsd:sequence >
    <xsd:element ref="Request" minOccurs="0"/>
    </xsd:sequence>
    </xsd:complexType >
    </xsd:element>
    <xsd:element name="Service">
    <xsd:complexTyp e>
    <xsd:sequence >
    <xsd:element ref="ServiceDes cription" minOccurs="0"/>
    <xsd:element ref="ServiceCha rges" minOccurs="0"/>
    <xsd:element ref="CurrencyCo de" minOccurs="0"/>
    </xsd:sequence>
    </xsd:complexType >
    </xsd:element>
    <xsd:element name="ListOfSer vice">
    <xsd:complexTyp e>
    <xsd:sequence >
    <xsd:element ref="Service" minOccurs="0" maxOccurs="unbo unded"/>
    </xsd:sequence>
    </xsd:complexType >
    </xsd:element>
    <xsd:element name="Response" >
    <xsd:complexTyp e>
    <xsd:sequence >
    <xsd:element ref="ErrorMessa ge" minOccurs="0"/>
    <xsd:element ref="TotalAmoun tOutstanding" minOccurs="0"/>
    <xsd:element ref="Adjustment " minOccurs="0"/>
    <xsd:element ref="PreviousPa yment" minOccurs="0"/>
    <xsd:element ref="TotalDue" minOccurs="0"/>
    <xsd:element ref="PaymentDue Date" minOccurs="0"/>
    <xsd:element ref="ListOfServ ice" minOccurs="0"/>
    </xsd:sequence>
    </xsd:complexType >
    </xsd:element>
    <xsd:element name="getCurren tBillStatementR esponse">
    <xsd:complexTyp e>
    <xsd:sequence >
    <xsd:element ref="Response" minOccurs="0"/>
    </xsd:sequence>
    </xsd:complexType >
    </xsd:element>
    </xsd:schema>
    </wsdl:types>
    <wsdl:message name="getCurren tBillStatement" >
    <wsdl:part name="parameter s" element="getCur rentBillStateme nt"/>
    </wsdl:message>
    <wsdl:message name="getCurren tBillStatementR esponse">
    <wsdl:part name="parameter s" element="getCur rentBillStateme ntResponse"/>
    </wsdl:message>
    <wsdl:portTyp e name="getCurren tBillStatementP ort">
    <wsdl:operati on name="getCurren tBillStatement" >
    <wsdl:input message="tns:ge tCurrentBillSta tement"/>
    <wsdl:output message="tns:ge tCurrentBillSta tementResponse"/>
    </wsdl:operation>
    </wsdl:portType>
    <wsdl:binding name="getCurren tBillStatementB inding" type="tns:getCu rrentBillStatem entPort">
    <soap:binding style="document " transport="http ://schemas.xmlsoap .org/soap/http"/>
    <wsdl:operati on name="getCurren tBillStatement" >
    <soap:operati on soapAction="htt p://www.tm.com.my/hsbb/eai/getCurrentBillS tatement"/>
    <wsdl:input>
    <soap:body use="literal"/>
    </wsdl:input>
    <wsdl:output>
    <soap:body use="literal"/>
    </wsdl:output>
    </wsdl:operation>
    </wsdl:binding>
    <wsdl:service name="getCurren tBillStatementS ervice">
    <wsdl:port name="getCurren tBillStatementP ort" binding="tns:ge tCurrentBillSta tementBinding">
    <soap:address location="http://localhost/getCurrentBillS tatement/"/>
    </wsdl:port>
    </wsdl:service>
    </wsdl:definition s>

    *************** *************** ***********
Working...