Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 60989 invoked from network); 30 May 2005 17:54:12 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 30 May 2005 17:54:12 -0000 Received: (qmail 45567 invoked by uid 500); 30 May 2005 17:54:06 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 45500 invoked by uid 500); 30 May 2005 17:54:05 -0000 Mailing-List: contact axis-dev-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-dev@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-dev@ws.apache.org Received: (qmail 45443 invoked by uid 99); 30 May 2005 17:54:05 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from ajax-1.apache.org (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.28) with ESMTP; Mon, 30 May 2005 10:54:02 -0700 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id E34B7181 for ; Mon, 30 May 2005 19:21:57 +0200 (CEST) Message-ID: <2024346303.1117473717929.JavaMail.jira@ajax.apache.org> Date: Mon, 30 May 2005 19:21:57 +0200 (CEST) From: "Steve Green (JIRA)" To: axis-dev@ws.apache.org Subject: [jira] Commented: (AXIS-1752) xs:list attributes do not serialize In-Reply-To: <1442239899.1104956413306.JavaMail.jira@ajax.apache.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/AXIS-1752?page=comments#action_66565 ] Steve Green commented on AXIS-1752: ----------------------------------- Tom, Dims, etc.. AXIS-1752, and AXIS-1762 may not be valid bugs. I understand that all types must be registered in the type mapping in order to {de}serialize properly. These bug reports address what I thought was a grey area. The problem I've run across is that a bean with xs:list attributes does not serialize properly in a stand alone code fragment. i.e. Bean bean = new Bean(); bean.setX(...); bean.setY(...); new MessageElement(.., .., bean).toString(); BeanSerializer can do everything (so far) except for attributes that are lists. Attached is a test program that shows the problem in action. You'll notice that the attribute values are not serialized. If you say that Axis is working as designed (i.e. not working) then please close AXIS-1762 and AXIS-1752. If these bugs are deemed valid, then a further review of my fixes is probably warranted. > xs:list attributes do not serialize > ----------------------------------- > > Key: AXIS-1752 > URL: http://issues.apache.org/jira/browse/AXIS-1752 > Project: Axis > Type: Bug > Components: Serialization/Deserialization > Versions: current (nightly) > Reporter: Steve Green > Attachments: 1752-02.02.05.diff, 1752-and-1762-diff.txt, 1752.diff, 1752.diff-u, 1752.wsdl, 1752_try2.patch, Test.java, Test1752.java > > When sending messages that contain attributes consisting of a list, the attribute is not serialized. > The problem appears to be for 2 reasons. > 1. wsdl2java does not generate the indexed getter and setter methods. The bean introspector does not recognize the method as a list method and thus the serializer fails when trying to serialize the "value". > 2. BeanSerializer doesn't have any code to serialize attributes that are indexed. -- 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