axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bill Keese (JIRA)" <>
Subject [jira] Created: (AXIS-1778) Array deserialization "broken" for document/literal mode
Date Mon, 24 Jan 2005 00:23:19 GMT
Array deserialization "broken" for document/literal mode

         Key: AXIS-1778
     Project: Axis
        Type: Bug
  Components: Serialization/Deserialization  
    Versions: current (nightly)    
    Reporter: Bill Keese

My .NET client
correctly serializes

class MyClass{
   String[] myArray;



However, AXIS cannot deserialize this.  Note that if I use RPC encoding then the type information
is stored in the serialized data and Axis can decode it fine.

The workaround is to register a serializer/deserializer in the
WSDD file like this:




(Of course, you should substitute String[] with the actual type of your

Is this a bug? I'd like all Array objects to automatically call

Note also that there is a default serializer/deserializer registered for
ArrayList (although not for List or Collection). However, in
document/literal mode (where no type information is encoded into the
message), Axis has no way of knowing the type (String, Integer, etc.) so
the deserialization fails when processing the first element. Thus your Java
class should contain a simple array like this:

String[] foo;

instead of a list like this:

List foo;

Note that the name of the array (myArray) is NOT listed in the typeMapping above.

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
If you want more information on JIRA, or have a bug to report see:

View raw message