Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.*;
- import org.apache.xmlrpc.client.*;
- import org.apache.xmlrpc.common.*;
- import org.apache.xmlrpc.*;
- public class pms {
- public static void main (String [] args) {
- String UserName = "123";
- String Password = "123";
- String pKey = "123";
- XmlRpcClient server = new XmlRpcClient("http://localhost/RPC2"); //("http://localhost/RPC2");
- Vector params = new Vector();
- try {
- params.addElement(new Integer(17));
- params.addElement(new Integer(13));
- Object result = server.execute("acquire_token",params);
- int sum = ((Integer) result).intValue();
- System.out.println("The sum is: "+ sum);
- } catch (Exception exception) {
- System.err.println("JavaClient: " + exception);
- }
- System.out.println("Hello World");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement