[Repoze-dev] repoze, zope, soaplib Integration
Ian Bicking
ianb at colorstudy.com
Wed Oct 31 16:43:01 UTC 2007
Chris McDonough wrote:
> Using the wsgi_soap.SimpleWSGISoapApp class, you can make a WSGI
> application that allows itself to be invoked via SOAP. And with a
> clever enough Paste configuration (e.g. via egg:Paste#urlmap), you
> could cause this application to be run alongside Zope within the same
> process. But this wouldn't by itself help you return Zope data from
> the SOAP methods. You'd either have to open up a ZODB database
> connection from within the SimpleWSGISoapApp subclass to get the
> data, or you'd need to create more "Zopey" bindings (e.g. using the
> component architecture rather than WSGI to do the serialization) that
> fit into Zope proper.
Have you guys looked at topp.zwsgi? It's a little like what you are
doing. One of the pieces is the ability to put a WSGI application
inside Zope, with access to the Zope objects. Basically the
configuration parameters are put into the ZODB, and then the actually
application is instantiated lazily, and the request is handed off.
I don't entirely stand by the code, but it's something that might help
here. The code is here:
https://svn.openplans.org/svn/topp.zwsgi/trunk/topp/zwsgi/zpaste.py
I think it relies on some other stuff too, like the topp.zwsgi.wsgi
module. We're not really doing anything with topp.zwsgi at this point,
but it might be helpful in repoze.
--
Ian Bicking : ianb at colorstudy.com : http://blog.ianbicking.org
More information about the Repoze-dev
mailing list