You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by Jan Bares <ja...@jaron.cz> on 2005/10/31 10:08:05 UTC

Inheritacne bug in Axis or WSDL2Java?

Hi,

I succesfully used WSDL2Java to generate client classes and it works. 
However I have troubles with one service method. The method looks like this:

void troubleMethod(BaseClass args[]);

I have to pass a ChildClass object that extends BaseClass class as
argument, so I do:
troubleMethod(new BaseClass[] {new ChildClass()});

When I look into SOAP request, I see only fields from BaseClass, but no
fields from ChildClass object. Both classes *are* generated by AXIS from
WSDL. Does AXIS/SOAP handle inheritance on input parameters? (it works
well for output parameters, e.g. method BaseClass[] anotherMethod() 
returns ChildClass objects inside the array).

Is this bug in Axis?

The WSDL for the web service is 
https://adwords.google.com/api/adwords/v2/CriterionService?wsdl.

Thansk you very much, Jan