axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Glen Daniels <>
Subject RE: passing parameter subclasses using Axis
Date Tue, 13 Aug 2002 14:09:34 GMT

Hi Chad:

Could you give a few more details here?

We do have explicit tests to make sure this kind of stuff works (see test/wsdl/polymorphism
for one).  There are two cases for your example - 1) you have an explicit type mapping for
apple, separate from Fruit.  2) you don't.

In case #1, you should see an xsi:type='myNS:apple' go over the wire, with the appropriate
serialization of apple, including potentially non-Fruit data.  In case #2, you should just
get a normal Fruit serialization.


> -----Original Message-----
> From: Chad []
> Sent: Tuesday, August 13, 2002 10:02 AM
> To:
> Subject: passing parameter subclasses using Axis
> I have a method 
> 	static void f).
> I want to call 
> 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 apple makes it.
> What don't I know / what do I do ?
> Thanks Chad

View raw message