Return-Path: Delivered-To: apmail-axis-java-dev-archive@www.apache.org Received: (qmail 61196 invoked from network); 13 Sep 2010 20:54:58 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 13 Sep 2010 20:54:58 -0000 Received: (qmail 95572 invoked by uid 500); 13 Sep 2010 20:54:57 -0000 Delivered-To: apmail-axis-java-dev-archive@axis.apache.org Received: (qmail 95417 invoked by uid 500); 13 Sep 2010 20:54:56 -0000 Mailing-List: contact java-dev-help@axis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-dev@axis.apache.org Delivered-To: mailing list java-dev@axis.apache.org Received: (qmail 95378 invoked by uid 99); 13 Sep 2010 20:54:56 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Sep 2010 20:54:56 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Sep 2010 20:54:55 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o8DKsXeo004493 for ; Mon, 13 Sep 2010 20:54:34 GMT Message-ID: <27275448.161901284411273017.JavaMail.jira@thor> Date: Mon, 13 Sep 2010 16:54:33 -0400 (EDT) From: "Chetan Saundankar (JIRA)" To: java-dev@axis.apache.org Subject: [jira] Updated: (AXIS2-4818) Inheritance on method parameters not working In-Reply-To: <17970981.161191284409533020.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/AXIS2-4818?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Chetan Saundankar updated AXIS2-4818: ------------------------------------- Description: 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 check soap MESSAGE on server & their I dont see employee number attribute. was: 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 check soap MESSAGE on server & their I dont see employee number attribute. Question -------------- Is this an expected behavior? I hope it is not. Is there any way I can make this work without having write custom SOAP decoders? > 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 > 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 check soap MESSAGE on server & their 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