You can't manipulate sub wikis trough localhost or IP which is always associated to main wiki and there is nothing in the XML-RPC URL to indicate the wiki like there is in REST API. That said it should be ok when you access the wiki using the domain associated to the wiki. Like in http://somewiki.mydomainh.com/xwiki/xmlrpc/confluence. Note that the XML-RPC API is more or less deprecated in flavor of the REST API so you might want to migrate if not too much work. On Tue, Aug 14, 2012 at 4:07 PM, Jones, Dan <DaJones@national.aaa.com> wrote:
How can you use the standard XWikiXMLRPCClient to add pages or spaces to a particular wiki, when you are running the XWiki Enterprise Manager application?
I have installed everything, and I've made 2 new wikis.
When I log in as localhost:8080/xwiki/xmlrpc/confluence, I can add a space or page, but I can't specify which wiki to use!
The url localhost:8080/xwiki/wiki/NEW_WIKI/xmlrpc/confluence doesn't hit the xml rpc servlet filter. It initializes my context to the XWiki that is the main one, not a sub-wiki.
String url = "http://localhost:8080/xwiki/xmlrpc/confluence"; XWikiXmlRpcClient rpc = new XWikiXmlRpcClient( url); rpc.login( user, pass);
rpc.storePage(someNewPage);
Thanks! Dan
________________________________ This communication (including all attachments) is intended solely for the use of the person(s) to whom it is addressed and should be treated as a confidential AAA communication. If you are not the intended recipient, any use, distribution, printing, or copying of this email is strictly prohibited. If you received this email in error, please immediately delete it from your system and notify the originator. Your cooperation is appreciated. _______________________________________________ devs mailing list devs@xwiki.org http://lists.xwiki.org/mailman/listinfo/devs
-- Thomas Mortagne