Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void makeAction(String action, int paramsNumber, int option) throws XmlRpcException, IOException {
- System.out.println(action);
- System.out.println(paramsNumber);
- reader = new Scanner(System.in);
- String temp;
- Vector params = new Vector<String>();
- int i = paramsNumber;
- while (i > 0) {
- System.out.println("Podaj parametr: ");
- temp = reader.next();
- params.addElement(temp);
- i--;
- }
- if(option == 6 ){
- srv.executeAsync("myServer." + action, params, ac);
- System.out.println("Wywołano asynchronicznie");
- }else {
- Object result = srv.execute("myServer." + action, params);
- System.out.println("WYNIK: " + result.toString());
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement