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
posted
0
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).