> | The best approach is to separate the bean from the extra methods, and > | just have your server use the extra methods by calling the class that > | would extend the bean class. That way, regardless of what happens, you > | know what is going out as a webservice.
The problem with this approach is that the incoming classes will not be of the correct type. The extra methods need to live in the same class otherwise the whole server side code will end up with a superclass of the class they actually need to get and then you need to have some conversion done from the superclass to the subclass, so I think this approach leads to very ugly code that tries to workaround a feature that doesn't exist in Axis. Is there such a thing in Axis as a descriptor file where one could list the classes/beans and also the methods that would like to be exposed? Or maybe the methods to be exposed can be annotated via custom javadoc tags. Can XDoclet be used to achieve this? I can't tell from briefly looking at it ... If someone has more experience with it please share it with us. Thank you. Tim