Simple cast your result to a Vector
Vector v = (Vector)result.getValue();
-----Original Message-----
From: Walid Rjaibi/Zurich/IBM [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 24, 2001 8:34 AM
To: [EMAIL PROTECTED]
Subject: SOAP-RPC : How to return a Vector?
Hi,
I am trying a little experiment with SOAP RPC where I wanted the Web
service to return a Vector (or a hashtable) but I did not know how the
client side can obtain this Vector (or Hashtable), i.e.,
Response response = call.invoke(url, "");
if (!response.generatedFault())
{
// If I am expecting a Vector or a hashtable how do I get it
here?
Parameter result = response.getReturnValue();
// result.getValue() returns an Object??
}
Does anyone know how this can be done? Many thanks and sorry if the answer
is too obvious ( I am new to SOAP RPC and JAVA!)
Cheers,
Walid