|
From: Paul P. <pa...@Ac...> - 2001-09-04 22:16:22
|
It would be great if I could also do this:
#!/usr/bin/env python2.1
import zsiserver
def hello(arg):
return 'hello world'
def echo(arg):
arg['Server'] = "It would be my pleasure to connect you."
return arg
def incr(arg):
for k,v in arg.items():
if type(v) == type(1): arg[k] = v + 1
return arg
zsiserver.server_forever()
Also, you said:
> The input arg will be a possibly-empty
> dictionary;
I think there is a problem here. Some SOAP implementations generate
bogus names (typically gensym) and depend instead on the *order* of
parameters. But wrapping them in a dictionary loses order.
--
Take a recipe. Leave a recipe.
Python Cookbook! http://www.ActiveState.com/pythoncookbook
|