You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by jiadao <ji...@ds.e-technik.uni-dortmund.de> on 2004/04/26 11:35:40 UTC
about serialization/deserialization of complex types using the WSDL2Java
hello:
I have one problem when I want to do the the
serialization/deserialization using the xml<->Java datatypes mapping,
when I try to extension the types which are defines by myself
For examples
Targetnamespace="foo"
<xs:complexType name="Named">
<xs:simpleContent>
<xs:extension base="foo:StateType">
<xs:attribute name="Name" type="xs:string"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:simpleType name="StateType">
<xs:restriction base="xs:string">
<xs:enumeration value="value1"/>
<xs:enumeration value="value2"/>
<xs:enumeration value="value3"/>
</xs:restriction>
</xs:simpleType>
there are some errors
java org.apache.ax
is.wsdl.WSDL2Java example.wsdl
java.io.IOException: Type Named is referenced but not define
d.
at
org.apache.axis.wsdl.symbolTable.SymbolTable.checkForUndefined(Symbol
Table.java:522)
at
org.apache.axis.wsdl.symbolTable.SymbolTable.add(SymbolTable.java:422
)
at
org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.jav
a:408)
at
org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.jav
a:393)
at
org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:245)
at java.lang.Thread.run(Unknown Source)
sounds like that it is wrong to do the extension using the self-defined
type which is not the XSD intrinsic types.
Thank u very much in advance!
jiadao