You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-user@xml.apache.org by Tony Ng <ng...@hotmail.com> on 2001/04/04 01:06:38 UTC
ClassCastException?
Hi,
I have got a service in which has a function like
public Vector getResult() {
Vector v = new Vector();
v.add("1");
v.add("2");
return v;
}
Then in the client, after registering ID, invoke etc..
I got these lines:
Parameter ret = resp.getReturnValue();
Vector v = (Vector)ret.getValue(); // this line throws ClassCastException. I
understand that resp.getReturnValue() return Object, but this Object is
actually a Vector.
Do I need to do mapping or anything here?
Ta.
Tony
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: soap-user-unsubscribe@xml.apache.org
For additional commands, email: soap-user-help@xml.apache.org