axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Amihai Fuks" <>
Subject Does Axis support polymorphism?
Date Mon, 20 Jun 2005 08:50:45 GMT

I am new to Axis (and SOAP in general...). Does Axis support
polymorphism in the service's methods? I'll give an example: is it a
good practice to expose a method like: 

public void addShape(Shape shape); 

Where Shape is an abstract type and there are several implementations
for the type like: Square and Rectangle (as you may guess). 

Or maybe try avoid it through flattening my objects resulting in
duplication of logic applied to all Shapes and having as much Shapes I
have addShape methods.  

Notice that I have no idea who my clients are and how they handle the
SOAP on their side.

Thanks, Amihai

View raw message