Title: 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    



Reply via email to