Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from rpclib.server.django import DjangoApplication # not real import path.
- from rpclib.service import ServiceBase
- from rpclib.interface.wsdl import Wsdl11
- from rpclib.protocol.soap import Soap11
- from rpclib.application import Application
- class HelloWorldService(ServiceBase):
- @soap(String, Integer, _returns=Iterable(String))
- def say_hello(self, name, times):
- for i in xrange(times):
- yield 'Hello, %s' % name
- hello_world_service = DjangoApplication(Application([HelloWorldService],
- 'some.tns',
- interface=Wsdl11(),
- in_protocol=Soap11(),
- out_protocol=Soap11()
- ))
Add Comment
Please, Sign In to add comment