#!/usr/bin/env python # encoding: utf-8 # # Copyright (c) 2008 Doug Hellmann All rights reserved. # """ """ #end_pymotw_header import xmlrpclib server = xmlrpclib.ServerProxy('http://localhost:9000') multicall = xmlrpclib.MultiCall(server) multicall.ping() multicall.show_type(1) multicall.show_type('string') for i, r in enumerate(multicall()): print i, r