Bugzilla Webservice API -> Named argument problem
Jethro Borsje
jethroborsje at gmail.com
Fri Nov 14 08:21:03 UTC 2008
Dear Max,
Thank you for your reply.
>> List<String> loginList = new ArrayList<String>();
>
> You should be passing a Map, not an ArrayList. In XML-RPC
> terms, all Bugzilla parameters are a <struct>.
>
I was aware of that, but the XMLRpcClient of Apache only lets me pass
a List or an Array to the execute() method. However, I just found out
the following syntax does the trick:
[code]Object loginResult = rpcClient.execute("User.login", new
Object[]{loginMap});[/code]
So everything works fine now.
Best regards,
Jethro
More information about the developers
mailing list