Webservice : retrieving bug list for a product using java
ADvAnCeD
paternoster.nicolo at gmail.com
Wed Dec 8 23:16:45 UTC 2010
Hi everyone.
For a university project I have to retrieve all the bugs associated to
a product with a certain state .
I'm tring since two days using Java apache xmlrpc libraries for
accessing the webservice "Bug.search" ...
Can somebody help me with this task? It should be simple but I'm
loosing a lot of time and the deadline is approaching.... I read every
post related to Java and Webservice , asked on IRC , googled but I
didn't figure it out.
Are there any example of Java calls to the "Bug.search" procedure?
Let say I want to get all the bugs associated to the product "P", that
have 'status' = RESOLVED,CLOSED, or VERIFIED
and 'resolution' different from
INVALID,WONTFIX, and DUPLICATE .
How should my Hasmap being created?
How should I call the client.execute?
Thank you, any help is deeply appreciated
Mycode:
XmlRpcClientConfigImpl config = new XmlRpcClientConfigImpl();
config.setServerURL(new URL("https://BUGZILLAURL/xmlrpc.cgi"));
XmlRpcClient client = new XmlRpcClient();
client.setConfig(config);
Map map = new HashMap();
map.put("login","leg at lize.it");
map.put("password","*********");
//IS that really needed for my purpose?
Map result = (Map) client.execute("Bug.search", new Object[]
{map}); // What should i write here?
System.out.println("Result = "+result);
_______________________________________________
dev-apps-bugzilla mailing list
dev-apps-bugzilla at lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-apps-bugzilla
More information about the developers
mailing list