Advertisement
Guest User

Untitled

a guest
Sep 14th, 2017
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. import java.util.*;
  2. import org.apache.xmlrpc.client.*;
  3. import org.apache.xmlrpc.common.*;
  4. import org.apache.xmlrpc.*;
  5. public class pms {
  6. public static void main (String [] args) {
  7. String UserName = "123";
  8. String Password = "123";
  9. String pKey = "123";
  10. XmlRpcClient server = new XmlRpcClient("http://localhost/RPC2"); //("http://localhost/RPC2");
  11. Vector params = new Vector();
  12. try {
  13. params.addElement(new Integer(17));
  14. params.addElement(new Integer(13));
  15. Object result = server.execute("acquire_token",params);
  16. int sum = ((Integer) result).intValue();
  17. System.out.println("The sum is: "+ sum);
  18. } catch (Exception exception) {
  19. System.err.println("JavaClient: " + exception);
  20. }
  21. System.out.println("Hello World");
  22. }
  23.  
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement