try: result = client.service.addPet(person, dog) print '\nreply( %s )\n' % str(result) except Exception, e: print e print '___________________ E X C E P T I O N S __________________________' # # test exceptions # try: print 'throwException() faults=True' result = client.service.throwException() print '\nreply( %s )\n' % tostr(result) except Exception, e: print e # # test faults # try: print 'throwException() faults=False' client.set_options(faults=False) result = client.service.throwException() print '\nreply( %s )\n' % tostr(result) except Exception, e: print e print '\nfinished: errors=%d' % errors