XML/RPC oddities

François Déchelle fdechelle at mandriva.com
Thu Apr 19 15:43:55 CEST 2007


Hello,

I made a simple example using XWiki XML/RPC API, and I'm facing 
something bizarre.

The example is located at:
http://www.xwiki.org/xwiki/bin/view/UserGuide/XMLRPCExample

It's a work in progress; is it OK to put it on www.xwiki.org user guide? 
The idea is to make it a reusable example of XML/RCP API use.

The archive contains the source code, an Ant build file to compile and 
run the example, an Eclipse project.

I do the following:
1- I run 'ant login': result is ok
2- I run 'ant create': result is ok, seen from the XML/RPC client side
3- I visit Sandbox.WebHome using firefox: Test page appears in Sandbox 
space pages, but as a link to a non existing page; clicking on the link 
brings to editing an empty page
4- I run 'ant get': the page is received ok, with same content as when 
created (i.e. "This content was created by XMLRPC")
5- I visit Sandbox.WebHome using firefox: same as before. Clearing the 
cache, quitting firefox does not change anything
6- I run 'ant edit': the page is edited ok
7- I run 'ant get': the content is correct w.r.t. previous editing
8- I visit Sandbox.WebHome with firefox: idem as before (page 
Sandbox.Test is non existant)
9- I restart Tomcat
10- I visit Sandbox.WebHome with firefox: page is there
11- I visit Sandbox.Test with firefox: content is correct

Looks like a cache problem, but where?

The source code of the example may seem unnecessarily complicated (use 
of properties, separation in several classes), but the idea is to move 
it to Ant task easily.

Any idea?

François




More information about the devs mailing list