I am just stepping into the world of XML-RPC to access a Trac server. How can I debug if I have access to the client only ?
Some code snippet:
import java.net.URL;
import java.util.Hashtable;
import org.apache.xmlrpc.client.XmlRpcClient;
import org.apache.xmlrpc.client.XmlRpcClientConfigImpl;
import org.lustin.trac.xmlprc.Wiki;
...
XmlRpcClientConfigImpl conf = new XmlRpcClientConfigImpl();
conf.setBasicUserName("user");
conf.setBasicPassword("password");
try {
conf.setServerURL(new URL("https://whateverdomainhere.com/login/xmlrpc"));
XmlRpcClient client = new XmlRpcClient();
client.setConfig(conf);
System.out.println(client.toString());
org.lustin.trac.xmlprc.TrackerDynamicProxy tdp = new org.lustin.trac.xmlprc.TrackerDynamicProxy(client);
Wiki wiki = (Wiki)tdp.newInstance(Wiki.class);
Hashtable h = new Hashtable();
wiki.putPage("MyWikiSite", "Hello World!", h);
}
...
All I get is
org.apache.xmlrpc.client.XmlRpcClient@148bd3
Exception in thread "main" java.lang.RuntimeException: Uncompilable source code
at test.Main.main(Main.java:44)
Java Result: 1
BUILD SUCCESSFUL (total time: 20 seconds)
Appreciate any hints, links, etc.
I found 1 link on this specific topic http://blog.zgraggen.name/archives/111