#!/usr/bin/env python import xmlrpclib, sys, getpass from pprint import pprint url = "http://localhost:20005/test1.woa/wa/RPC2" # some functions ... def promptForString(text=None): sys.stdout.write(text) sys.stdout.flush() str = sys.stdin.readline() if len(str) > 0: str = str[:-1] else: return None return str # collect parameters try: login = promptForString("Login: ") pwd = getpass.getpass("Password: ") account = promptForString("account login: ") except KeyboardInterrupt: print "ctrl-c" sys.exit(0) # call server server = xmlrpclib.Server(url)#, login=login, password=pwd) accountsComponent = server.com.skyrix.accounts result = accountsComponent.getAccountByLogin(account) pprint(result)