You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by "Peake, Chris" <CH...@ca.com> on 2002/06/26 17:44:56 UTC
serialization problem with complex types in arrays as data
I have two complex classes nested that I am passing from the client to the
Web Service.
The client code was generated by Axis.
Pattern[] pat = new Pattern[5];
class Pattern
{
PatternField[8];
}
class PatternField
{
String id;
}
I load only the first Pattern[0] but load 'all' 8 occurences of PatternField
array in Pattern.
Each PatternField has 'different' data. Let's say:
PatternField[0] = "zero";
PatternField[1] = "one";
...
PatternField[7] = "seven";
I print this out just before the service call from the client Stub:
Object resp = call.invoke(new Object[] {consultData});
The data is correct, but trapping the 'serialized data' using TCPMON, shows
that the
PatternFields 'all' contain 'just' the data from the last PatternField[7].
(i.e. data is all 'seven' for each occurence of PatternField on the wire)
Anyone seen this???
thanks,
Chris Peake