Would anyone have an example of using XML-RPC in Java to create a new page in XWiki? I found an example that uses swizzle and Confluence shown below
import org.codehaus.swizzle.confluence.Confluence;
import org.codehaus.swizzle.confluence.Page
;
import java.util.HashMap;
public class AddPageExample {
public static void main(String[] args) throws Exception {
String username = "david";
String password = "snarf";
String endpoint = "http://docs.codehaus.org/rpc/xmlrpc";
Confluence confluence = new Confluence(endpoint);
confluence.login
(username, password);
Page page = new Page(new HashMap());
page.setSpace("SWIZZLE");
page.setTitle("Test Page");
page.setContent("This is a test");
confluence.storePage(page);
confluence.logout();
}
}
How different would the implementation for XWiki be?
Thanks.