An example of XML/RPC use

Last modified by Vincent Massol on 2020/01/28 14:36

XWiki XML/RPC example

Note: this is a work in progress; don't use it now!!!

This is an example of using XWiki XML/RPC API to create, get and edit pages. It is based on http://soal.xwiki.com/xwiki/bin/view/Code/XWikiXMLRpc but uses version 

Author: François Déchelle (fdechelle at mandriva.com)

Download the example

Download the attached archive XWiki-XMLRPC-Example.tar.gz

The archive contains:

  • source code
  • the required libs
  • ant build file to compile and run the test
  • Eclipse project

Run the example

  • edit properties file XWiki-XMLRPC-Example.properties to define XWiki URL, username, password, page id (currently Sandbox.Test)
  • check that you can login to XWiki using 'ant login'
  • create the page if it does not exist with 'ant create'
  • check that the page is there with 'ant get'
  • edit the page with 'ant edit'
  • check the edition with 'ant get'

Get Connected