I tried searching
and found few dated messages in the list but no definitive answer. So, basically
I have two questions:
1) Is polymorphism
defined as part of the SOAP specification? Namely, if I have an operation that
returns Shape but it in fact returns a Square (boy have you seen this example
once or twice before, right?), does SOAP specification have anything in it that
says "yes, this should be supported", "no, it's invalid", "up to the
vendor"?
2) Does Axis support
it? Basically, it seems that if you use Call.setReturnType (or class or
whatever) it overrides the type specified by the server, so if I say
.setReturnClass(Shape.class) I will get Shape instantiated, even though the
service returns type ns1:Square (and square is known). Furthermore, if I say
.setReturnClass(List.class) (List is another class of mine, not the one from
Collections) I do in fact get a List object back. Server was still returning
Square but List object was generated.
I am still in the
middle of my experiments but if somebody has a "ready to go" answer it
would be greatly appreciated. I am using Axis 1.3.
Note: I am not
sending WSDL and other additional information on purpose. At the point I need a
basic answer, "yes, axis supports this" or "no, you are not in
Kansas".
Thank
you,
-Michael
___________________
Words can never express what words can
never express
-- /usr/bin/fortune
