Passing an array of strings

2009-07-08 Thread Ken Tanaka
I'm using an xmlrpc-client 3.1.2 application to talk to an xmlrpc-server 3.1.2 server and want to pass an array of strings. I figure people on this list must have done this before. This code below is working, but could probably be written better. Does anyone have suggestions on cleaning up

Re: Passing an array of strings

2009-07-08 Thread Stanislav Miklik
Hi, AFAIK, you are right, option A is the way how it works (see: http://ws.apache.org/xmlrpc/faq.html#arrays) My only advice, make small tooling, eg. public static List decodeList(Object element) { if (element == null) { return null; } if (element instanceof List) {

Re: Passing an array of strings

2009-07-08 Thread Ken Tanaka
Stano, Thanks for the quick response. I did a lot of web searches but somehow missed the FAQ right there on the Apache web site. I'll try out the decodeList since that will be cleaner. Your suggestion would also be a nice addition to the FAQ. -Ken Stanislav Miklik wrote: Hi, AFAIK, you