axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 17017] - The WSDL2Java generates incorrect type metadata for sequences containing arrays of sequences, thus preventing correct deserialization
Date Mon, 01 Dec 2003 16:42:10 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17017>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17017

The WSDL2Java generates incorrect type metadata for sequences containing arrays of sequences,
thus preventing correct deserialization





------- Additional Comments From jshin@jtan.com  2003-12-01 16:42 -------
Indeed, this bug is present in 1.1. I think the ultimate cause of what I came
across is this bug. 

class RecordId
{
  private string DB;
  private String ID;
}

class Item
{
   private RecordId[] ids; 
}

And have a web service 'API' to retrieve Item[]

 Item[] getItems(.....)  : return an array of |Item|'s matching a certain condition.



I got an  java.lang.reflect.InvocationTargetException when I tried to invoke
getItems(). Somebody told me that that happened probably because my deserializer
is to blame, but there was not anything wrong  in deserializer in Item.java. I
now think the cause was the incorrect type metadata (Item.java) which has 
exactly the same problem as described in comment #0 by Navneet. I'm now going to
fix the type metadata manually and see if my speculation is correct.

Mime
View raw message