axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chad <chadn...@optusnet.com.au>
Subject passing parameter subclasses using Axis
Date Fri, 09 Aug 2002 00:30:00 GMT
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

Mime
View raw message