Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[ecf-dev] Bugzilla via ECF

Hi folks,

Someone know if is possible to connect Bugzilla through Eclipse ECF ?

I found with Apache XML-RPC but I would like with ECF.

Example with XML-RPC

import org.apache.xmlrpc.XmlRpcException;
import org.apache.xmlrpc.client.XmlRpcClient;
import org.apache.xmlrpc.client.XmlRpcClientConfigImpl;


public class EclipseBugzilla {
    public static void main(String[] args) throws MalformedURLException, XmlRpcException {
        XmlRpcClientConfigImpl  config = new XmlRpcClientConfigImpl();
        config.setServerURL(new URL("https://bugs.eclipse.org/bugs/xmlrpc.cgi"));

        XmlRpcClient client = new XmlRpcClient();
        client.setConfig(config);

        Map map = new HashMap();
        map.put("login","email@xxxxxxxxx");
        map.put("password","password");

        Map result = (Map) client.execute("User.login",  new Object[]{map});
        System.out.println("Result = "+result);
    }
}


thanks in advance

--
[]'s
Mario Cezar Ponciano  - a.k.a Razec
http://razec.wordpress.com
mrazec@xxxxxxxxx
Linux User: 443515

Back to the top