欢迎访问悦橙教程(wld5.com),关注java教程。悦橙教程  java问答|  每日更新
页面导航 : > > 文章正文

Apache XMLRPC 的例子,apachexmlrpc例子,import org.a

来源: javaer 分享于  点击 32286 次 点评:264

Apache XMLRPC 的例子,apachexmlrpc例子,import org.a


import org.apache.xmlrpc.client.XmlRpcClient;import org.apache.xmlrpc.client.XmlRpcClientConfigImpl;XmlRpcClientConfigImpl config = new XmlRpcClientConfigImpl();config.setServerURL(new URL("<a href="http://127.0.0.1:8080/xmlrpc">http://127.0.0.1:8080/xmlrpc"));XmlRpcClient client = new XmlRpcClient();client.setConfig(config);Object[] params = new Object[]{new Integer(33), new Integer(9)};Integer result = (Integer) client.execute("Calculator.add", params);//该片段来自于http://byrx.net
相关栏目:

用户点评