axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Milinda Lakmal Pathirage (JIRA)" <j...@apache.org>
Subject [jira] Assigned: (AXIS2-4818) Inheritance on method parameters not working
Date Tue, 21 Dec 2010 05:06:01 GMT

     [ https://issues.apache.org/jira/browse/AXIS2-4818?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Milinda Lakmal Pathirage reassigned AXIS2-4818:
-----------------------------------------------

    Assignee: Milinda Lakmal Pathirage

> Inheritance on method parameters not working
> --------------------------------------------
>
>                 Key: AXIS2-4818
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4818
>             Project: Axis2
>          Issue Type: Bug
>    Affects Versions: 1.4
>         Environment: Ubuntu Jaunty 9.04, JDK 1.6u21, Tomcat 6.0
>            Reporter: Chetan Saundankar
>            Assignee: Milinda Lakmal Pathirage
>            Priority: Blocker
>
> I have a test web service with following methods & classes,
> Method
> ------------
> public String addPerson(Person p) {
> if(p instanceof Employee) {
> return "Employee"; 
> }
> return "Person";
> }
> Note: Method is annotated with @WebMethod, @WebParam annotations, so is web service with
@WebService.
> Classes
> -------------
> Class Person {
> private String name;
> // getters and setters
> }
> Class Employee extends Person{
> private int employeeNo;
> // getters and setters
> }
> Observations
> -------------------
> In spite of client sending the serialized Employee object the web service is always taking
it as a Person object. I have checked the soap packet on client with firebug tool, employee
number is present in the payload. I also checked soap MESSAGE on server & there I dont
see employee number attribute.

-- 
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: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


Mime
View raw message