You should try to change the URL to "http://mywiki/xwiki/xmlrpc/confluence" Chanding mywiki with the url or url:port of your wiki Ludovic Israa Taha a écrit :
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. ------------------------------------------------------------------------
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Ludovic Dubost Blog: http://www.ludovic.org/blog/ XWiki: http://www.xwiki.com Skype: ldubost GTalk: ldubost AIM: nvludo Yahoo: ludovic