Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 24649 invoked from network); 31 May 2005 19:03:15 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 31 May 2005 19:03:15 -0000 Received: (qmail 35448 invoked by uid 500); 31 May 2005 19:03:10 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 35414 invoked by uid 500); 31 May 2005 19:03:10 -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 35400 invoked by uid 99); 31 May 2005 19:03:10 -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; Tue, 31 May 2005 12:03:06 -0700 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id 4628E18C for ; Tue, 31 May 2005 21:02:53 +0200 (CEST) Message-ID: <1975174127.1117566173286.JavaMail.jira@ajax.apache.org> Date: Tue, 31 May 2005 21:02:53 +0200 (CEST) From: "Michael Thome (JIRA)" To: axis-dev@ws.apache.org Subject: [jira] Updated: (AXIS-1525) xsd:group behavior is wrong In-Reply-To: <747724829.1093299920090.JavaMail.apache@nagoya> 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-1525?page=all ] Michael Thome updated AXIS-1525: -------------------------------- Attachment: another.wsdl In the spirit of the previous example, here is a sample wsdl file. Compare the code generated for OneType with AnotherType > xsd:group behavior is wrong > --------------------------- > > Key: AXIS-1525 > URL: http://issues.apache.org/jira/browse/AXIS-1525 > Project: Axis > Type: Bug > Components: Serialization/Deserialization > Versions: 1.2 Beta > Reporter: Steve Green > Fix For: 1.2.1 > Attachments: 1525.diff, SomeType.java, another.wsdl, group.patch, groupgen.patch, sample.wsdl, test.wsdl.groups.tar > > WSDL2Java generates separate types for groups, and objects that reference groups end up with a children object. The problem is that serialization of that object should not show the group in XML. The elements of the group should appear on the wire as if they were elements of the referencing object. > It seems that the problem might be fixable by changing the way in which WSDL2Java generates classes with groups. The bean writer could recurse in to groups and treat the elements as elements of the object being written. This might create problems when trying to properly handle xsd attributes like minOccurs=0, etc.. that appear on the group reference. > Another possible solution would be to add some info to the type description so that the serialization could could recognize a group reference and do the right thing. The same would need to be true of the deserializer. This fix involves a change to the code generator as well as changes to the Axis engine. > N O T E: I am interested in supplying a fix for this problem. Please comments on this issue so that I chose the method that best fits the design goals of the Axis developers. -- 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