axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steve Green (JIRA)" <axis-...@ws.apache.org>
Subject [jira] Commented: (AXIS-1752) xs:list attributes do not serialize
Date Mon, 30 May 2005 17:21:57 GMT
     [ 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


Mime
View raw message