I have not followed your discution because I just got connected to the 
mailing list, but as far as I can remember, we have some major problems with 
the fact that SOAP does not support polymorphism. There is a fix, but for 
this you must change some code (like adding 2 lines) into RPCRouter (I think) 
file. 

If you are interested, then tell me and I will look for this. The correction 
is like this: 
if the return object is not null then 
        try to use the Class of the object and encode it by its class, 
else 
        just encode a null object based on the signature of the method. 

There is a flow even with this approach. If you have an Base object and a 
Child extends Base. You have the BAse object registered to a serializer, but 
the Child is not, then, if you are gonna return the Child instead of the 
Base, it will just tell you that you have not registered the Child object!!! 
Fault : correct. 

So you have to register the Child object and then it works. 


Hope it helps
dovle


> FYI, I will be looking at the code that resolves methods, as it looks to
> me like it was written to try to handle polymorphism, yet there are
> complaints that polymorphism is not working.
>
> Scott Nichol
>
> ----- Original Message -----
> From: "Scott Nichol" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, November 06, 2002 10:05 AM
> Subject: Re: (correction)
>
> > Apache SOAP does not handle polymorphism when finding signatures.  It
> > could, but it doesn't right now.
> >
> > Scott Nichol
> >
> > ----- Original Message -----
> > From: "Dieter Cailliau" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Wednesday, November 06, 2002 9:33 AM
> > Subject: (correction)
> >
> > > ...
> > > params.addElement(new Parameter("command",
> > > com.dewildecbt.util.OperationCommand.class, new
> > > com.dewildecbt.util.OperationCommand("hashCode",new Object[]{}),
> >
> > null));
> >
> > > ...
> > >
> > > (i used the BeanSerializer to serialize OperationCommands)
> >
> > --
> > To unsubscribe, e-mail:
>
> <mailto:soap-user-unsubscribe@;xml.apache.org>
>
> > For additional commands, e-mail:
>
> <mailto:soap-user-help@;xml.apache.org>

--
To unsubscribe, e-mail:   <mailto:soap-user-unsubscribe@;xml.apache.org>
For additional commands, e-mail: <mailto:soap-user-help@;xml.apache.org>

Reply via email to