You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Chad <ch...@optusnet.com.au> on 2002/08/09 02:30:00 UTC

passing parameter subclasses using Axis

THIS MIGHT BE A REPOST SORRY IF IT IS
I have a method 
	static void Person.eat(Fruit f).
I want to call 
	Person.eat(new apple())
what happens is the apple never makes it- it arrives as null

The apparent reason is that when serializing the parameter
RPCParam.serialize() uses the javaType derived from the ParameterDesc if
there is one rather than the type of the parameter object itself. 
And Call.getParamList() always ensures that there is a ParameterDesc
there. 
And the ParameterDesc says the type is Fruit

When I comment out the line 
	 p.setParamDesc(param);
in Call.java apple makes it.

What don't I know / what do I do ?

Thanks Chad