axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Anne Thomas Manes <atma...@gmail.com>
Subject Re: Axis WSDL2Java's Error: reference but not defined
Date Sun, 03 Apr 2005 15:59:11 GMT
Make sure that you have the schemaLocation correct. Is it
dcquickvaluesws.xsd or dcquickvaluews.xsd?

Anne

On Mar 31, 2005 4:18 AM, babloosony <babloosony@gmail.com> wrote:
> Hi All,
> 
> I have below wsdl which uses 2 xsd files using schema import element.
> When I run WSDL2Java program of AXIS 1.2 RC2,
> I am getting below error. I dont understand this error even though
> this WSDL has been "validated ok"
> by wsdl validators. Please suggest ....
> 
> java.io.IOException: Type
> {http://ws.as.com/schemas/dcquickvaluews}TCINFO is referenced but not
> defined.
>     at org.apache.axis.wsdl.symbolTable.SymbolTable.checkForUndefined(SymbolTable.java:653)
>     at org.apache.axis.wsdl.symbolTable.SymbolTable.add(SymbolTable.java:533)
>     at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:506)
>     at org.apache.axis.wsdl.gen.Parser.run(Parser.java:394)
>     at org.apache.axis.wsdl.toJava.Emitter.run(Emitter.java:601)
>     at com.aexp.wsaf.client.build.Build.generateAxis(Build.java:443)
>     at com.aexp.wsaf.client.build.Build.process(Build.java:1106)
>     at com.aexp.wsaf.client.build.Build.main(Build.java:1197)
> 
> TCSummaryWithXsd.wsdl
> -----------------------
> 
> <?xml version="1.0" encoding="UTF-8"?>
> 
> <wsdl:definitions
>         xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
>         xmlns:impl="http://ws.as.com/wsdl/dcquickvaluews"
>         xmlns:intf="http://ws.as.com/wsdl/dcquickvaluews"
>         xmlns:apachesoap="http://xml.apache.org/xml-soap"
>         xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
>         xmlns:xsd="http://www.w3.org/2001/XMLSchema"
>         xmlns:tns4="http://ws.as.com/schemas/dcquickvaluews"
>         targetNamespace="http://ws.as.com/wsdl/dcquickvaluews">
> 
> <wsdl:types>
>         <schema xmlns="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"
>                         targetNamespace="http://ws.as.com/wsdl/dcquickvaluews" >
> 
>                         <xsd:import namespace="http://ws.as.com/schemas/dcplanlistws"
>                                                 schemaLocation="dcplanlistws.xsd" />
> 
>                         <xsd:import namespace="http://ws.as.com/schemas/dcquickvaluews"
>                                                 schemaLocation="dcquickvaluews.xsd" />
> 
>                         <element name="getTCQuickValues">
>                                 <complexType>
>                                         <sequence>
>                                                 <element name="in0" type="tns4:REQUESTDATA"/>
>                                         </sequence>
>                                 </complexType>
>                         </element>
>                         <element name="getTCQuickValuesResponse">
>                                 <complexType>
>                                         <sequence>
>                                                 <element name="getTCQuickValuesReturn"
type="tns4:TCINFO"/>
>                                         </sequence>
>                                 </complexType>
>                         </element>
>         </schema>
> </wsdl:types>
> 
> <wsdl:message name="getTCQuickValuesRequest">
>         <wsdl:part name="parameters" element="impl:getTCQuickValues"/>
> </wsdl:message>
> <wsdl:message name="getTCQuickValuesResponse">
>         <wsdl:part name="parameters" element="impl:getTCQuickValuesResponse"/>
> </wsdl:message>
> 
> <wsdl:portType name="TCQuickValueWSInterface">
>         <wsdl:operation name="getTCQuickValues">
>                 <wsdl:input name="getTCQuickValuesRequest"
> message="impl:getTCQuickValuesRequest"/>
>                 <wsdl:output name="getTCQuickValuesResponse"
> message="impl:getTCQuickValuesResponse"/>
>         </wsdl:operation>
> </wsdl:portType>
> 
> <wsdl:binding name="TCQuickValueWSBinding" type="impl:TCQuickValueWSInterface">
>         <wsdlsoap:binding style="document"
> transport="http://schemas.xmlsoap.org/soap/http"/>
>         <wsdl:operation name="getTCQuickValues">
>         <wsdlsoap:operation soapAction=""/>
>                 <wsdl:input name="getTCQuickValuesRequest">
>                         <wsdlsoap:body use="literal"/>
>                 </wsdl:input>
>                 <wsdl:output name="getTCQuickValuesResponse">
>                         <wsdlsoap:body use="literal"/>
>                 </wsdl:output>
>         </wsdl:operation>
> </wsdl:binding>
> 
> <wsdl:service name="TCQuickValueWSInterfaceService">
>         <wsdl:port name="TCQuickValueWSBean" binding="impl:TCQuickValueWSBinding">
>                 <wsdlsoap:address
> location="http://localhost:9999/BluestarWeb/services/TCQuickValueWS"/>
>         </wsdl:port>
> </wsdl:service>
> 
> </wsdl:definitions>
> 
> dcquickvaluesws.xsd
> --------------------
> <?xml version="1.0" encoding="UTF-8"?>
> <xsd:schema     xmlns="http://www.w3.org/2001/XMLSchema"
>                                                 xmlns:xsd="http://www.w3.org/2001/XMLSchema"
>                                                 xmlns:tns2="http://ws.as.com/schemas/dcplanlistws"
>                                                 targetNamespace="http://ws.as.com/schemas/dcquickvaluews"
>                                                 elementFormDefault="qualified">
> 
>         <xsd:import namespace="http://ws.as.com/schemas/dcplanlistws"
> schemaLocation="dcplanlistws.xsd" />
> 
>         <xsd:complexType name="REQUESTDATA">
>                 <xsd:complexContent>
>                         <xsd:extension base="tns2:bs-request-bean">
>                                 <xsd:sequence>
>                                         <xsd:element name="requestEntries" type="tns2:PLAN"
minOccurs="0"
> maxOccurs="unbounded"/>
>                                 </xsd:sequence>
>                         </xsd:extension>
>                 </xsd:complexContent>
>         </xsd:complexType>
>         <xsd:complexType name="TCINFO">
>                 <xsd:complexContent>
>                         <xsd:extension base="tns2:bs-data-bean">
>                                 <xsd:sequence>
>                                         <xsd:element name="ERRORS" type="xsd:boolean"/>
>                                         <xsd:element name="NUMPLANS" type="xsd:boolean"/>
>                                         <xsd:element name="PLAN" type="tns2:PLAN"
minOccurs="0"
> maxOccurs="unbounded"/>
>                                         <xsd:element name="PLANVALUES" type="tns2:TCPlanValues"
> minOccurs="0" maxOccurs="unbounded"/>
>                                 </xsd:sequence>
>                         </xsd:extension>
>                 </xsd:complexContent>
>         </xsd:complexType>
> </xsd:schema>
> 
> dcplanlistws.xsd
> -----------------
> <?xml version="1.0" encoding="UTF-8"?>
> 
> <xsd:schema     targetNamespace="http://ws.as.com/schemas/dcplanlistws"
>                                 elementFormDefault="qualified"
>                                 xmlns="http://www.w3.org/2001/XMLSchema"
>                                 xmlns:xsd="http://www.w3.org/2001/XMLSchema"
>                                 xmlns:tns1="http://ws.as.com/schemas/dcquickvaluews"
>                                 xmlns:tns2="http://ws.as.com/schemas/dcplanlistws" >
> 
>         <xsd:import namespace="http://ws.as.com/schemas/dcquickvaluews"
> schemaLocation="dcquickvaluews.xsd" />
> 
>         <xsd:complexType name="bs-request-bean">
>                 <xsd:sequence>
>                         <xsd:element name="CSRRepType" nillable="true" type="xsd:string"/>
>                 </xsd:sequence>
>         </xsd:complexType>
> 
>         <xsd:complexType name="PLAN">
>                 <xsd:sequence>
>                         <xsd:element name="planID" nillable="true" type="xsd:string"/>
>                 </xsd:sequence>
>         </xsd:complexType>
> 
>         <xsd:complexType name="TCPlanValues">
>                                 <xsd:sequence>
>                                         <xsd:element name="description" nillable="true"
type="xsd:string"/>
>                                 </xsd:sequence>
>         </xsd:complexType>
> 
>         <xsd:complexType name="PLANDATA">
>                 <xsd:sequence>
>                         <xsd:element name="planId" nillable="true" type="xsd:string"/>
>                         <xsd:element minOccurs="0" maxOccurs="unbounded"
> name="planValuesList" type="tns2:TCPlanValues"/>
>                 </xsd:sequence>
>         </xsd:complexType>
> 
>         <xsd:complexType name="bs-data-bean">
>                 <xsd:sequence>
>                         <xsd:element name="SSN" nillable="true" type="xsd:string"/>
>                         <xsd:element minOccurs="0" maxOccurs="unbounded" name="planData"
> type="tns2:PLANDATA"/>
>                 </xsd:sequence>
>         </xsd:complexType>
> </xsd:schema>
> 
> Thanks & Regards,
> Kumar.
>

Mime
View raw message