0
Follow
0
View

problem running spyne with uwsgi , unable to find "application" callable

dx22955 注册会员
2023-01-25 04:02

You need application to be unconditionally instantiated.

Here's the corrected part of your code:

application = Application(
        services=[Xml],
        tns=soap_namespace,
        in_protocol=Soap11(validator='lxml'),
        out_protocol=Soap11())

application = WsgiApplication(application)


if __name__ == '__main__':
    from wsgiref.server import make_server

    server = make_server('0.0.0.0', 8000, application)
    server.serve_forever()

About the Author

Question Info

Publish Time
2023-01-25 04:02
Update Time
2023-01-25 04:02