Advertisement
Guest User

Untitled

a guest
Mar 28th, 2017
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. private void makeAction(String action, int paramsNumber, int option) throws XmlRpcException, IOException {
  2. System.out.println(action);
  3. System.out.println(paramsNumber);
  4. reader = new Scanner(System.in);
  5. String temp;
  6.  
  7. Vector params = new Vector<String>();
  8. int i = paramsNumber;
  9. while (i > 0) {
  10. System.out.println("Podaj parametr: ");
  11. temp = reader.next();
  12. params.addElement(temp);
  13. i--;
  14. }
  15. if(option == 6 ){
  16. srv.executeAsync("myServer." + action, params, ac);
  17. System.out.println("Wywołano asynchronicznie");
  18. }else {
  19. Object result = srv.execute("myServer." + action, params);
  20. System.out.println("WYNIK: " + result.toString());
  21. }
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement