You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Michael Remijan <Mi...@solocup.com> on 2002/07/12 21:14:03 UTC
how to handle polymorphism? Apache SOAP does, Apache Axis??
..
I'm just getting into webservices and am trying to play around with Axis, testing a bunch of typical scenarios. Here's a not so interesting one. I have two methods
display(String [])
display(Object [])
Obviously, if it's all string I want to do one thing. If it's just object, I want to do another. Apache SOAP handled this fine meaning the client called the appropriate method. Axis is having a harder time. I always get the
display(Object []) no matter what I do to try otherwise. Here's the current snippit of how i'm handling my setParameter() method so far.
call.addParameter(
"strArray", XMLType.SOAP_ARRAY, String[].class, ParameterMode.IN
);
any thoughts on how to remedy this?
Thanks,
Mike