Justin,

Starting from a WSDL file that uses inheritance, I have successfully generated the beans, and they keep their hierarchy relationship, using Axis 1.2.1 (from within a Eclipse with WST). It only re-generates the beans if they are not in the classpath, so I am able to customize them, and keep the changes.

Perhaps your problem is that wsdl2java is generating a parallel bean hierarchy on another package. Try to print the class name of your bean's parent class. If this is the problem, you should map the type namespace to the correct package, in order to allow the generator tool to know that the bean classes already exist. You will have to manually modify the generated deploy.wsdd, to indicate which class must be instantiated when deserializing your abstract bean. Otherwise, Axis will fail trying to instantiate your abstract bean.

HTH,
Rodrigo Ruiz

Reply via email to