Skip to content

Commit

Permalink
fix namespaces / mount PngClock protocol to the Wsgi application.
Browse files Browse the repository at this point in the history
  • Loading branch information
plq committed Mar 6, 2012
1 parent a7a9c3e commit 0c9c52c
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions examples/multiple_protocols/server.py 100644 → 100755
Expand Up @@ -73,23 +73,27 @@ def get_utc_time():
logging.getLogger('rpclib.protocol.xml').setLevel(logging.DEBUG)

rest = Application([HelloWorldService],
tns='rpclib.examples.hello.http',
tns='rpclib.examples.multiple_protocols',
interface=Wsdl11(), in_protocol=HttpRpc(), out_protocol=HttpRpc())

xml = Application([HelloWorldService],
tns='rpclib.examples.hello.http',
tns='rpclib.examples.multiple_protocols',
interface=Wsdl11(), in_protocol=HttpRpc(), out_protocol=XmlObject())

soap = Application([HelloWorldService],
tns='rpclib.examples.hello.http',
tns='rpclib.examples.multiple_protocols',
interface=Wsdl11(), in_protocol=HttpRpc(), out_protocol=Soap11())

html = Application([HelloWorldService],
tns='rpclib.examples.hello.http',
tns='rpclib.examples.multiple_protocols',
interface=Wsdl11(), in_protocol=HttpRpc(), out_protocol=HtmlMicroFormat())

png = Application([HelloWorldService],
tns='rpclib.examples.multiple_protocols',
interface=Wsdl11(), in_protocol=HttpRpc(), out_protocol=PngClock())

svg = Application([HelloWorldService],
tns='rpclib.examples.hello.http',
tns='rpclib.examples.multiple_protocols',
interface=Wsdl11(), in_protocol=HttpRpc(), out_protocol=SvgClock())


Expand All @@ -98,6 +102,7 @@ def get_utc_time():
'xml': xml,
'soap': soap,
'html': html,
'png': png,
'svg': svg,
})

Expand Down

0 comments on commit 0c9c52c

Please sign in to comment.