Avoid polymorphism and abstract types. Flatten your objects. Anne
On 6/20/05, Amihai Fuks <[EMAIL PROTECTED]> wrote: > Hi, > > 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 >
