javaxmlrpc到汇流
我想通过xmlrpc将页面上传到confluence 我可以登录,但我不知道如何用java表示“页面”。调用远程过程时javaxmlrpc到汇流,java,xml-rpc,confluence,Java,Xml Rpc,Confluence,我想通过xmlrpc将页面上传到confluence 我可以登录,但我不知道如何用java表示“页面”。调用远程过程时 XmlRpcClientConfigImpl config = new XmlRpcClientConfigImpl(); config.setServerURL(new URL("xxxxxxx/rpc/xmlrpc")); XmlRpcClient client = new XmlRpcClient(); client.setConfig(c
XmlRpcClientConfigImpl config = new XmlRpcClientConfigImpl();
config.setServerURL(new URL("xxxxxxx/rpc/xmlrpc"));
XmlRpcClient client = new XmlRpcClient();
client.setConfig(config);
try {
String token = (String) client.execute("confluence2.login", new String[] {"login","password"});
//Object page = null;
//Object result = client.execute("storePage", new String[] {token, (String) page});
System.out.println(token);
} catch (XmlRpcException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
页面的类型是什么?很简单:据我所知,它只是一个HashMap。它是一个Map。您可以在此处看到页面映射的有效键/值:-请在“页面”部分下查看