File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Services and the fly likes apache axis, inheritance and overloading Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Web Services
Reply Bookmark "apache axis, inheritance and overloading" Watch "apache axis, inheritance and overloading" New topic
Author

apache axis, inheritance and overloading

paulm rhoades
Greenhorn

Joined: Nov 08, 2005
Posts: 6
i want to pass events from a client to a server via a web service interface such as:

public void accept(Event e);

now Event is actually an interface (or abstract class) with specialisations defined for each concrete event type (e.g. AddUserEvent, UpdateUserEvent, etc..). So, how do i do it. Does SOAP handle inheritance, or if not can i overload the service:

public void accept(AddUserEvent e);
public void accept(UpdateUserEvent e);#

or is there a.n.other approach?
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 32767
I'm speculating here, but I think that it shouldn't matter to SOAP, because what you're transferring is a black box to it anyway. You will need to sort out the details in your serializer/deserializer (you need that because SOAP does not know anything about your parameter types).


Android appsImageJ pluginsJava web charts
 
 
subject: apache axis, inheritance and overloading
 
Threads others viewed
Patterns for hiding methods from third party classes
array of Jbutton - how to use event.getSource()
How do I extend and implement same method from an abstract class and interface
synchronized/wait(), How to use them in my case
javax.xml.bind.JAXBException
developer file tools

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture