Hello,
I recently had to generate Java classes using WSDL2Java on a very large
WSDL file (don't know if the size had anything to do with it. :-) )
The WSDL came from a commercial company. I ran WSDL2Java using AXIS 1.3
on it and got errors like yours. Specifically, the Java code would not
compile because the generated code had calls such as this:
In a file Foo.java,
public class Foo
{
super(<some integer value>)
}
Of course, java.lang.Object has no such constructor (the class had no
other superclass), thus creating the compilation error.
I can only tell you I switched to AXIS 1.2 and it worked. I'm
sorry I can't offer a better explanation.
Vartan
--- Vasilis <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I have a problem using the wsdl2Java tool. I have given a wsdl with
> many complex types but when i generate the classes i get this message
> for every type in the wsdl
> :The constructor Object(xxxx) is undefined
>
> For example in the wsdl there is a Name complex type with its
> definition
>
> <xsd:complexType name="Name">
> <xsd:simpleContent>
> <xsd:extension base="Name_Def">
> <xsd:attribute use="optional" name="uname"
> type="xsd:string"/>
> </xsd:extension>
> </xsd:simpleContent>
> </xsd:complexType>
>
> <xsd:simpleType name="Name_Def">
> <xsd:restriction base="xsd:string">
> <xsd:maxLength value="25"/>
> <xsd:whiteSpace value="preserve"/>
> </xsd:restriction>
> </xsd:simpleType>
>
> Thes axis generates this code:
>
> public class Name implements java.io.Serializable,
> org.apache.axis.encoding.SimpleType {
> private java.lang.String uName; // attribute
>
> public Name() {
> }
>
> // Simple Types must have a String constructor
> public Name(java.lang.String _value) {
> super(_value);
> }
>
> The compiler error that i take is this:"The constructor Object(String)
> is undefined"
>
> Does anyone know how to solve this? I have checked this problem in
> other messages in the mailing list but the only solution i found was to
> use axis 1.2.x instead of 1.3 that i am using now.
>
> Thanks,
> Vasilis
>
>
>
>
> ---------------------------------
> ×ñçóéìïðïéåßôå Yahoo!
> ÂáñåèÞêáôå ôá åíï÷ëçôéêÜ ìçíý ìáôá (spam); Ôï Yahoo! Mail äéáèÝôåé ôçí
> êáëýôåñç äõíáôÞ ðñïóôáóßá êáôÜ ôùí åíï÷ëçôéêþí ìçíõìÜôùí
> http://login.yahoo.com/config/mail?.intl=gr
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com