You can. You will need to set the object type of an array.
QName opFindAllEntries = new
QName("http://service.addressbook.sample/xsd", "findAllEntries");
Object[] opFindAllEntriesArgs = new Object[0] ;
Class[] returnTypesList = new Class[] { Entry[].class };
Object[] allEntriesResponse =
serviceClient.invokeBlocking(opFindAllEntries,
opFindAllEntriesArgs,
returnTypesList);
// System.out.println("Num RESPONSE Entries : " + (null !=
allEntriesResponse ? allEntriesResponse.length : 0 ) );
System.out.println("RESPONSE Entry class: " +
allEntriesResponse[0].getClass() );
Object[] allEntriesRsltArray = (Object[])
allEntriesResponse[0];
System.out.println("Num Entries in Result Array:" +
allEntriesRsltArray.length );
for(int i=0, n= allEntriesRsltArray.length; i < n;i++)
{
System.out.println("Entry # " + (i+1) + ": " +
(null != allEntriesRsltArray[i]
? ((Entry)allEntriesRsltArray[i]).getName() : "NULL") );
}
Or use JIBX.
-----Original Message-----
From: Mathias P.W Nilsson [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 06, 2007 3:57 AM
To: [email protected]
Subject: Re: RPCServiceClient and ArrayList
I got it to work by sending an array an not a list.
Why can't I send ArrayList?
--
View this message in context:
http://www.nabble.com/RPCServiceClient-and-ArrayList-tf4390198.html#a125
17424
Sent from the Axis - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]