diff options
author | Kjetil Ørbekk <kjetil.orbekk@gmail.com> | 2012-01-10 15:38:31 +0100 |
---|---|---|
committer | Kjetil Ørbekk <kjetil.orbekk@gmail.com> | 2012-01-10 15:38:31 +0100 |
commit | a63e922375434b9d8f7effffe14845d240b430f9 (patch) | |
tree | 181742c0648405441a74772c56b0025b7c536604 /rpctest/src/main/java/com/orbekk/Client.java | |
parent | 9a554911174e096b95e99527eac04627400c41ba (diff) |
Remove rpctest project.
Apache xmlrpc doesn't work on Android because of a mismatch in Java core
classes [1]. Remove rpctest project.
In my master's project, jsonrpc4j will be used instead of xmlrpc.
[1] http://code.google.com/p/android/issues/detail?id=9493
Diffstat (limited to 'rpctest/src/main/java/com/orbekk/Client.java')
-rw-r--r-- | rpctest/src/main/java/com/orbekk/Client.java | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/rpctest/src/main/java/com/orbekk/Client.java b/rpctest/src/main/java/com/orbekk/Client.java deleted file mode 100644 index dca3018..0000000 --- a/rpctest/src/main/java/com/orbekk/Client.java +++ /dev/null @@ -1,27 +0,0 @@ -package com.orbekk; - -import java.net.URL; -import org.apache.log4j.Logger; -import org.apache.xmlrpc.client.XmlRpcClient; -import org.apache.xmlrpc.client.XmlRpcClientConfigImpl; -import org.apache.xmlrpc.client.util.ClientFactory; - -public class Client { - public static void main(String[] args) throws Exception { - Logger logger = Logger.getLogger("Client"); - logger.info("Client starting."); - XmlRpcClientConfigImpl config = new XmlRpcClientConfigImpl(); - config.setServerURL(new URL("http://localhost:10080/xmlrpc")); - XmlRpcClient client = new XmlRpcClient(); - client.setConfig(config); - ClientFactory factory = new ClientFactory(client); - Calculator calculator = (Calculator)factory.newInstance( - Calculator.class); - int sum = calculator.add(40, 2); - for (int i = 0; i < 100; i++) { - sum = calculator.add(40, 2); - } - System.out.println("The answer is " + sum); - logger.info("Client finished."); - } -} |