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

Greetings
-- 
View this message in context: 
http://www.nabble.com/No-method-matching-arguments-using-array-of-Serializable-objects-tp20323332p22082846.html
Sent from the Apache Xml-RPC - User mailing list archive at Nabble.com.

Reply via email to