axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ley, Selena (GMI/CPR Dev.)" <>
Subject Help re: referenced elements
Date Fri, 01 Aug 2003 21:18:35 GMT
I'm trying to use the wsdl2java tool to create the java beans. The wsdl imports schemas that
defines the elements.
So I have an Organization schema with the following snippet::

	<xs:import namespace = ""
schemaLocation = 		"file:///c:/schemas/Datatypes/PartyDatatypes_v5_2.xsd"/>

	{...defined below in Organization schema...} 
	<xs:element name = "IntermediaryIndicator" type = "partyType:IntermediaryIndicator" />

Here's the snippet from the PartyDatatypes schema:

	<xs:element name = "IntermediaryIndicator" type = "tns:IntermediaryIndicator"/>
	<xs:simpleType name = "IntermediaryIndicator">
		<xs:restriction base = "xs:token">
		        <xs:enumeration value = ""/>
		        <xs:enumeration value = "N"/>
		        <xs:enumeration value = "Y"/>
		        <xs:maxLength value = "1"/>

However, when I try using wsdl2java to create the java beans, it gives me the snippet below.
I've tried removing the element name declaration in the PartyDatatypes schema and just using
the simpleType
but that doesn't work either. However, if I change the simple type to be "IntermediaryIndicatorType"
and have the Organization reference that new name, then it works.
Am I defining the schemas incorrectly?
--Selena Type {}IntermediaryIndicator
is referenced but not defined.
        at org.apache.axis.wsdl.symbolTable.SymbolTable.checkForUndefined(Symbol
        at org.apache.axis.wsdl.symbolTable.SymbolTable.add(
        at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.jav
        at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.jav
        at org.apache.axis.wsdl.gen.Parser$
        at Source)

View raw message