axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Olaf Schuemann (JIRA)" <j...@apache.org>
Subject [jira] Commented: (AXIS2-2769) POJO-blocker: auto-generated wsdl does not contain properties of superclasses
Date Wed, 06 Jun 2007 07:50:25 GMT

    [ https://issues.apache.org/jira/browse/AXIS2-2769?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12501835
] 

Olaf Schuemann commented on AXIS2-2769:
---------------------------------------

Probably this issue duplicates the AXIS2-2436 and AXIS2-2661

> POJO-blocker: auto-generated wsdl does not contain properties of superclasses
> -----------------------------------------------------------------------------
>
>                 Key: AXIS2-2769
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2769
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: wsdl
>    Affects Versions: 1.2
>            Reporter: Olaf Schuemann
>            Priority: Blocker
>
> Properties of superclass(es) will not be populated in a auto-generated wsdl file.
> (The nightly build at 05-Jun-2007 01:27 doesn't fix it).
> E.g: the following auto-generated wsdl-fragment of class C2 (extends C1) with the String
properties C1.test1 and C2.test2 (see sample code below the wsdl-snippets) will be generated
to (and C1 is nowhere else referenced/defined...):
> ...
> <xs:element name="C2" type="ns:C2"/>
>    <xs:complexType name="C2">
>       <xs:complexContent>
>          <xs:extension base="ns0:C1">
>             <xs:sequence>
>                <xs:element name="test2" nillable="true" type="xs:string"/>
>             </xs:sequence>
>          </xs:extension>
>    </xs:complexContent>
> </xs:complexType>
> ...
> The Axis2-1.1 version in opposite will create the following (as expected):
> ...
> <xs:element name="C2" type="ns:C2"/>
>    <xs:complexType name="C2">
>       <xs:sequence>
>          <xs:element name="test1" nillable="true" type="xs:string"/>
>          <xs:element name="test2" nillable="true" type="xs:string"/>
>       </xs:sequence>
>    </xs:complexType>
> ...
> Sample classes C1 and C2:
> public class C1 {
>    private String test1;
>    public String getTest1() {
>       return test1;
>    }
>    public void setTest1(String test1) {
>       this.test1 = test1;
>    }
> } // C1
> public class C2 extends C1 {
>    private String test2;
>    public String getTest2() {
>       return test2;
>    }
>    public void setTest2(String test2) {
>       this.test2 = test2;
>    }
> } // C2

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


Mime
View raw message