def spyne_app_process():
class TestService(ServiceBase):
@rpc(Unicode, _returns=Unicode)
def ping(self, data):
return data
application = Application(
[TestService],
tns='aiohttp_spyne.tests.test',
in_protocol=Soap11(validator='lxml'),
out_protocol=Soap11())
spyne_app = AioApplication(application, client_max_size=1024 ** 2 * 2)
web.run_app(spyne_app, host="0.0.0.0", port=PORT)
评论列表
文章目录