Hi,
As Sergiu pointed out I am currently working to improve the
implementation of the XML-RPC API. The discussion is going on
xwiki-dev:
http://www.nabble.com/Proposal%3A-XML-RPC-API---True-Interoperability-with-…
http://www.nabble.com/Why-do-we-throw-exceptions-in-the-ConfluenceRpcInterf…
This JIRA issue is also relevant:
http://jira.xwiki.org/jira/browse/XWIKI-1560
There are many changes which I will commit after the M4 release, and
any additional help on testing them would be appreciated (especially
if you can provide us automated tests).
On 8/13/07, diaga(a)nomade.fr <diaga(a)nomade.fr> wrote:
Hi,
I am still testing the XMLRPC interface. This the first result I have noticed:
1.There are some messages that are not implemented:
-public Map getUser(String token, String username);
-public void addGroup(String token, String group);
-public Object[] getUserGroups(String token, String username);
-public void addUserToGroup(String token, String username, String groupname);
True, they are not yet implemented. But there are many others as well:
http://jira.xwiki.org/jira/browse/XWIKI-1559
2.To make the update or the creation of a page work
normally, I have to get the content of a page and to modify his element to have the result
I want. This is linked with the fact that we have to use a Map Object to define a page or
Map is an interface. So the other solution I haven't tested is to implement the
interface Map instead of getting a page and modifying it.
I don't follow you here. Can you please explain better what bothers
you here. Or maybe just give the code you had to write now, and how
you would like it to be.
3.For "public Object[] getComments(String token,
String pageId);" I have some problem to make it work normally.
I would advise you to wait a couple more days and try the new
implementation of this method from the SVN repository.
4.Another result is that I have to flush the cash very
often in order to make the Update and creation of a page work. If I don't do that I
have to restart my server to see the changes. When all work correct with a login/logout,
we see the changes.
There were some complaints before that the modifications through
xmlrpc don't work well with the caches:
http://www.nabble.com/Trouble-with-refresh-after-update-from-xmlrpc-tf39287…
http://www.nabble.com/XML-RPC-oddities-tf3607425.html
http://www.nabble.com/On-Which-Features-Should-I-Focus-When-Testing--tf3890…
Since xmlrpc does not use any sort of caching I always thought that
the problem should be somewhere else :) ... But well, maybe we should
do something to use those caches. Any suggestions what to do?
5.When I try to get the content of a document created
by a Class, I get the content of the Template linked to the Class. I don't know if
this is normal or not.
I don't know either. What else would you expect ?
Regards,
Catalin