ws-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From RiverDD <>
Subject Re: No method matching arguments using array of Serializable objects
Date Wed, 18 Feb 2009 16:43:29 GMT

I have finally find the solution to this problem.

XmlRpc can use all serializable objects if you activate extension mode.
XmlRpc allow to interchange Arrays, Vector, List, ... but just with Object
type. You have to cast each element of the Array (vector or List) to use it
at the other side.

I'll better you the code.

On the server side you have to receive a Object array and cast each element.

    public int start(Object[] outs) throws XmlRpcException {   // The method
signature have to use Object[] instead of AbstractOutInfo[]

        // Cast each element
        AbstractOutInfo[] aOuts = new AbstractOutInfo[outs.length];
        for (int i = 0; i < aOuts.length; i++)
            aOuts[i] = (AbstractOutInfo) outs[i];

        ......... use it

        return 1;   // Always have to return something. It can be void.

Hope this will usefull for someone  :-D

View this message in context:
Sent from the Apache Xml-RPC - User mailing list archive at

View raw message