You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by ax...@ws.apache.org on 2004/09/03 08:42:51 UTC

[jira] Commented: (AXIS-1525) xsd:group behavior is wrong

The following comment has been added to this issue:

     Author: Davanum Srinivas
    Created: Thu, 2 Sep 2004 11:40 PM
       Body:
Steve,

Am ok with either way. Glen may have a better opinion.

-- dims
---------------------------------------------------------------------
View this comment:
  http://issues.apache.org/jira/browse/AXIS-1525?page=comments#action_52781

---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/AXIS-1525

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: AXIS-1525
    Summary: xsd:group behavior is wrong
       Type: Bug

     Status: Unassigned
   Priority: Major

    Project: Axis
 Components: 
             Serialization/Deserialization
   Versions:
             1.2 Beta

   Assignee: 
   Reporter: Steve Green

    Created: Mon, 23 Aug 2004 3:25 PM
    Updated: Thu, 2 Sep 2004 11:40 PM

Description:
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.


---------------------------------------------------------------------
JIRA INFORMATION:
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

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira