Re: Call.invoke returning an array

From: Simon Horrell <>
Date: Thu, 23 May 2002 18:56:25 +0100

Here is an attached DII client that does what you want against the attached
Java service definition interface.
----- Original Message -----
From: "Stefan Boddy" <s.c.boddy_at_SALFORD.AC.UK>
Sent: Thursday, May 23, 2002 6:08 PM
Subject: Call.invoke returning an array

> If I have an operation that returns an array of some arbitrary object (I'm
experimenting with ArrayOfstring at the moment) and I set the return type
for a call to the operation to the array type, how do I get access to the
returned array? The Call.invoke method only specifies an Object return
which, as far as my limited Java knowledge goes, can't hold an array. Have I
missed some fundamental point about the whole purpose of the return type of
a Call?
> I have followed the examples that appear on this list in order to register
the serializers and deserializers for arrays and have managed to get array
parameters 'to' the Call instance for the operation to work, it's just the
return that I'm having trouble with.
> Any help would be appreciated, even if it makes me look a bit dim because
I have missed something obvious...
> Thanks in anticipation