Hi everyone, I'm a new user of webservices/axis/soap, etc.

I've deployed a simple WS (using axis2) which return a set, and I want to
deserialize it in my java client (also using axis2). But I get this error :

Exception in thread "main" java.lang.ClassCastException: java.util.ArrayList
cannot be cast to java.util.Set

Is this a common error ? If so, can you point me some doc which I must
positively absolutely read to avoid basic problems like this ?

Thanks in advance,
--
Mehdi
-------

here is a part of my java lient code

        RPCServiceClient serviceClient = new RPCServiceClient();

        Options options = serviceClient.getOptions();

        EndpointReference targetEPR = new EndpointReference(endPointStr);
        options.setTo(targetEPR);

        QName opFindEntry = new QName(namespaceStr, methodNameStr);

        Object[] opFindEntryArgs = new Object[] { };

        Class[] returnTypes = new Class[] { Set.class };


        Object[] response = serviceClient.invokeBlocking(opFindEntry,
                opFindEntryArgs, returnTypes);

        Set result = (Set) response[0];

Reply via email to