Return-Path: Mailing-List: contact axis-user-help@xml.apache.org; run by ezmlm Delivered-To: mailing list axis-user@xml.apache.org Received: (qmail 99687 invoked from network); 19 Apr 2002 18:16:31 -0000 Received: from smtp.accelernet.net (208.159.164.209) by daedalus.apache.org with SMTP; 19 Apr 2002 18:16:31 -0000 Received: (qmail 12780 invoked from network); 19 Apr 2002 18:16:35 -0000 Received: from 208-169-160-4.hou.accelernet.net (HELO detsky05) (208.169.160.4) by smtp.accelernet.net with SMTP; 19 Apr 2002 18:16:35 -0000 Message-ID: <013301c1e7ce$5720c850$9a01a8c0@ardec.com> From: "Vaishakhi Ajmera" To: Subject: Class Cast Exception using return type as List Date: Fri, 19 Apr 2002 13:16:35 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N I have followed the instructions in the mailing lists and used these options to get a List as return type from a web service call.setReturnClass ( java.util.List.class) List ls = (List)call.invoke( new Object[] {} ); or call.setReturnType( XMLType.SOAP_ARRAY); ArrayList ls = (ArrayList)call.invoke( new Object[] {} ); Both the above combination of statements give me a java.lang.ClassCastException: [Ljava.lang.Object; . How should I go about then to get a java.util.List as return type from my webservice. Thanks Vaishakhi