Title: what about someMethod(SomeInterface itf)

I'm trying to make an ejb accessible over soap.

i have an ejb that has a method that accepts as parameter any object that implements an interface:

interface Command { ... }
interface Service { perform(Command command); }

When i perform a call to the service

...
params.addElement(new Parameter("command", com.dewildecbt.util.Command.class, new com.dewildecbt.util.OperationCommand("hashCode",new Object[]{}), null));

...

soap say's it can't find the method, because it only looks for a method with 1 parameter having the actual data type i gave (OperationCommand):

14:59:29,853 ERROR [STDERR] Exception Caught upon method invocation attempt: java.lang.NoSuchMethodException: $Proxy22.perform(com.dewildecbt.util.OperationCommand

) -- no signature match

I wonder if there is some way to make this work, without huge changes. Why can't soap look for alternatives,
when it doesn't find a method?

for example: why does it not discover that there actually is a method that matches: perform(Command), because OperationCommand implements Command ?

Reply via email to