cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Benson Margulies" <bimargul...@gmail.com>
Subject Re: [CXF Dynamic JavaScript Client] inherited classes and attributes not generated
Date Thu, 23 Oct 2008 12:03:31 GMT
Please put this into JIRA, and I'll try to see if I can do something about it.

On Thu, Oct 23, 2008 at 5:20 AM,  <bvandeputte.ext@orange-ftgroup.com> wrote:
> Hi all,
>  I'm using the CXF JavaScript Client and i got a problem with extended
> classes and inherited attributes.
>  It's like the Javascript code generated by CXF bugs with extended
> classes.
>
>  Here is an example , i've got 2 classes :
>                --- File Person.java :
>                @XmlRootElement(name = "Person")
>                public class Person {
>                        Long id;
>                        String name;
>                        (...getters/setters..)
>                }
>                --- File Expert.java :
>                @XmlRootElement(name = "Expert")
>                public class Expert extends Person {
>                        String speciality;
>                        (...getters/setters..)
>                }
>
>  An Expert(id,name,speciality) extends a Person(id,name).
>
>  In my CXF Javascript client, i can invoke (perso JS object).getName(),
> but (expert JS object).getName() or (expert JS object).getSpeciality()
> are undefined.
>
>
>  Here is an extract of the generated Javascript
> (http://myserver:8080/CXF/HW?js):
>                (...)
>                //
>                // Constructor for XML Schema item
> {http://demo.com/}expert
>                //
>                function demo_com__expert () {
>                    this.typeMarker = 'demo_com__expert';
>                }
>                (...)
>                //
>                // Constructor for XML Schema item
> {http://demo.com/}person
>                //
>                function demo_com__person () {
>                    this.typeMarker = 'demo_com__person';
>                    this._id = null;
>                    this._name = null;
>                }
>                (...)
>
>  Is it a known limitation of the CXF generated javascript client ?
>  Is it a bug ?
>
>  In advance thanks for your answer.
>  Regards
>  Brice Vandeputte
>

Mime
View raw message