Hello All, I had been trying out the examples for XML RPC access at http://platform.xwiki.org/xwiki/bin/view/Features/XMLRPC. I am using XWiki 2 ML 3 on JDK 1.5 / Tomcat 6.0.18 / MySql 5 test machine. I placed the xwiki-core-xmlrpc-client-2.0-milestone-3.jar file in the WEB-INF/lib folder. Restarted tomcat & copy pasted the following code from the above XMLRPC page:
<% import org.xwiki.xmlrpc.XWikiXmlRpcClient; import org.xwiki.xmlrpc.model.XWikiPage; String url = "http://localhost:8080/xwiki/xmlrpc/confluence"; String user = "Admin"; String pass = "admin"; XWikiXmlRpcClient rpc = new XWikiXmlRpcClient(url); rpc.login(user, pass); XWikiPage page = rpc.getPage("Main.WebHome"); println(page.getContent()); String rendered = rpc.renderContent( page.getSpace(), page.getId(), page.getContent()); println(rendered); %> I do not get the rendered content from the server but instead I got the following error message: org.apache.xmlrpc.XmlRpcException: Failed to create input stream: http://localhost:8080/xwiki/xmlrpc/confluence Now, I also tried the other pure java example in Netbeans while making sure that all the commons-logging-1.1.jar, ws-commons-util-1.0.2.jar, xmlrpc-common-3.1.2.jar, and xmlrpc-client-3.1.2.jar files in the libraries. On running the sample code, I get the following error: XmlRpc HttpTransportException: HTTP server returned unexpected status Not Found What am I doing wrong...or is the article not updated as per XWiki 2.0 release. Any help would be greatly appreciated... _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
