[ 
http://issues.apache.org/jira/browse/AXIS-2552?page=comments#action_12430988 ] 
            
Jose Manuel Valladares Pernas commented on AXIS-2552:
-----------------------------------------------------

More details about the error generating code with WSDL2Java in the version 1.4

I discovered code produced by WSDL2Java that was working in version 1.2.1 and 
it is not working in 1.4.

I have a class that implements the SimpleType interface but doesn't extend any 
class.
In the constructor however it calls a super method.

But in axis 1.2.1 the code generated was correct.

Here I am sending you the code generated by axis 1.2.1:

public class PropertyTypePrefType  implements java.io.Serializable, 
org.apache.axis.encoding.SimpleType {
    private java.lang.String _value;
    private org.opentravel.www.OTA._2003._05.PreferLevelType preferLevel;  // 
attribute
    private java.lang.String propertyType;  // attribute

    public PropertyTypePrefType() {
    }

    // Simple Types must have a String constructor
    public PropertyTypePrefType(java.lang.String _value) {
        this._value = _value;
    }


And this is the code generated by axis 1.4:

public class PropertyTypePrefType  implements java.io.Serializable, 
org.apache.axis.encoding.SimpleType {
    private org.opentravel.www.OTA._2003._05.PreferLevelType preferLevel;  // 
attribute

    private java.lang.String propertyType;  // attribute

    public PropertyTypePrefType() {
    }

    // Simple Types must have a String constructor
    public PropertyTypePrefType(java.lang.String _value) {
        super(_value);
    }


After correcting these errors, there are still some more incorrect classes 
produced by WSDL2Java.

> Java classes generated by wsdl2java don't compile
> -------------------------------------------------
>
>                 Key: AXIS-2552
>                 URL: http://issues.apache.org/jira/browse/AXIS-2552
>             Project: Apache Axis
>          Issue Type: Bug
>          Components: WSDL processing
>    Affects Versions: 1.4
>         Environment: Linux OpenSuse 10.1
> Java JDK 1.5.0_06-b05
> Apache Axis 1.4
>            Reporter: Jose Manuel Valladares Pernas
>         Attachments: files.ZIP
>
>
> I have an wsdl that imports several xsd schemas and I
> used an ant task with WSDL2Java to produce the
> corresponding java clases.
> WSDL2Java produces the classes and no errors. But some
> of the generated classes don't compile.
> One of the classes has 2 constructor methods that are
> the same. Other classes that inherite from some parent
> classes have the constructor parameters in the wrong
> order.
> The schema files should be correct as they come from the OTA specification.
> I am attaching the files I am using in a zip file.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to