def main(): server = Server(uri) # 连接远程服务. # 测试远程调用函数. print "chop_in_half(): ", server.chop_in_half("hello server.") print "repeat(): ", server.repeat("hello server.", 3) print "_string(): ", server._string("addadd") # print "join(): ", server.python_string.join(["what a", "f*****g day."], "-") try: server._privateFunction() except Fault: print "_privateFunction(): not supported, can't access..."