Fix the little demo
This commit is contained in:
parent
08ffc0f71c
commit
63e91ba322
@ -12,9 +12,7 @@ Then::
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
from wsme import *
|
from wsme import *
|
||||||
from wsme.wsgi import WSRoot
|
from wsme.wsgi import adapt
|
||||||
|
|
||||||
from wsme.protocols import soap
|
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
@ -45,13 +43,16 @@ class DemoRoot(WSRoot):
|
|||||||
return p
|
return p
|
||||||
|
|
||||||
def app_factory(global_config, **local_conf):
|
def app_factory(global_config, **local_conf):
|
||||||
protocols = [
|
root = DemoRoot()
|
||||||
'restjson',
|
|
||||||
soap.SoapProtocol(
|
root.addprotocol('soap',
|
||||||
tns='http://example.com/demo',
|
tns='http://example.com/demo',
|
||||||
typenamespace='http://example.com/demo/types',
|
typenamespace='http://example.com/demo/types',
|
||||||
baseURL='http://127.0.0.1:8989/',
|
baseURL='http://127.0.0.1:8989/',
|
||||||
)]
|
)
|
||||||
return DemoRoot(protocols)
|
|
||||||
|
root.addprotocol('restjson')
|
||||||
|
|
||||||
|
return adapt(root)
|
||||||
|
|
||||||
logging.basicConfig(level=logging.DEBUG)
|
logging.basicConfig(level=logging.DEBUG)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user