Wiki source code of An example of XML/RPC use
Last modified by Vincent Massol on 2020/01/28 14:36
Show last authors
| author | version | line-number | content |
|---|---|---|---|
| 1 | 1 XWiki XML/RPC example | ||
| 2 | |||
| 3 | *Note: this is a work in progress; don't use it now!!!* | ||
| 4 | |||
| 5 | 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 | ||
| 6 | |||
| 7 | Author: François Déchelle (fdechelle __at__ mandriva.com) | ||
| 8 | |||
| 9 | 1.1 Download the example | ||
| 10 | |||
| 11 | Download the attached archive {attach:XWiki-XMLRPC-Example.tar.gz} | ||
| 12 | |||
| 13 | The archive contains: | ||
| 14 | * source code | ||
| 15 | * the required libs | ||
| 16 | * ant build file to compile and run the test | ||
| 17 | * Eclipse project | ||
| 18 | |||
| 19 | 1.1 Run the example | ||
| 20 | |||
| 21 | * edit properties file XWiki-XMLRPC-Example.properties to define XWiki URL, username, password, page id (currently Sandbox.Test) | ||
| 22 | * check that you can login to XWiki using 'ant login' | ||
| 23 | * create the page if it does not exist with 'ant create' | ||
| 24 | * check that the page is there with 'ant get' | ||
| 25 | * edit the page with 'ant edit' | ||
| 26 | * check the edition with 'ant get' | ||
| 27 | |||
| 28 |