equal
deleted
inserted
replaced
43 * @throws NullPointerException |
43 * @throws NullPointerException |
44 * carrying the error-message if an communication error occured. |
44 * carrying the error-message if an communication error occured. |
45 */ |
45 */ |
46 static protected String xmlLogin(String username, String password) { |
46 static protected String xmlLogin(String username, String password) { |
47 try { |
47 try { |
48 XmlRpcClient sdialog = new XmlRpcClient("http://localhost:1050"); |
48 XmlRpcClient sdialog = new XmlRpcClient("http://localhost:1050");//WN fixed port |
49 Vector params = new Vector(); |
49 Vector params = new Vector(); |
50 params.add(username); |
50 params.add(username); |
51 params.add(password); |
51 params.add(password); |
52 Vector response = (Vector) sdialog.execute("SDialog.login", params); |
52 Vector response = (Vector) sdialog.execute("SDialog.login", params); |
53 if (response.size() > 0) |
53 if (response.size() > 0) |