users@jax-rpc.java.net

Call.invoke returning an array

From: Stefan Boddy <s.c.boddy_at_SALFORD.AC.UK>
Date: Thu, 23 May 2002 11:08:11 -0600

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