>That's not quite true.
>
>Using WSGIApplicationGroup %{GLOBAL} is one possible solution, but it
>can also cause problems.
What problems?
>
>Another possible solution is to use WSGIDaemonProcess as mentioned in
>the article that Burak linked to.
This is not true. You have to use %{GLOBAL} also when using WSGIDaemonProcess.
If you are running several applications using lxml, create several WSGI
processes (one per app).
azur
>
>e.g.:
>
>http://code.google.com/p/modwsgi/wiki/ProcessesAndThreading#The_mod_wsgi_Daemon_Processes
>
>> raoul
>>
>> -----Original Message-----
>> From: azurIt <[email protected]>
>> To: [email protected]
>> Subject: Re: [Soap-Python] gist: 1242760 Unable to run with Django
>> Date: Tue, 13 Mar 2012 21:25:58 +0100
>>
>> Hi,
>>
>> always use %{GLOBAL} for WSGIApplicationGroup in mod_wsgi for apps using
>> lxml.
>>
>> azur
>>
>>
>>
>> ______________________________________________________________
>>> Od: "Raoul Thill" <[email protected]>
>>> Komu: <[email protected]>
>>> Dátum: 13.03.2012 19:10
>>> Predmet: [Soap-Python] gist: 1242760 Unable to run with Django
>>>
>>>Hi,
>>>
>>>based on the information in the comments section of the Gist, I am
>>>unable to run rpclib in conjunction with Django 1.4c1 and Apache
>>>mod_wsgi.
>>>
>>>The Apache server simply blocks upon the first request. When doing an
>>>strace on the processes I can see that some xsd file are generated
>>>in /tmp and after that nothing happens. No pages are served by this
>>>Apache anymore.
>>>
>>>Could you help me to track down the problem, I used in my tests the
>>>following code:
>>>
>>>from rpclib.server.django import DjangoApplication # not real import
>>>path.
>>>from rpclib.model.primitive import String, Integer
>>>from rpclib.model.complex import Iterable
>>>from rpclib.service import ServiceBase
>>>from rpclib.interface.wsdl import Wsdl11
>>>from rpclib.protocol.soap import Soap11
>>>from rpclib.application import Application
>>>from rpclib.decorator import rpc
>>>
>>>class HelloWorldService(ServiceBase):
>>> @rpc(String, Integer, _returns=Iterable(String))
>>> def say_hello(ctx, 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()
>>> ))
>>>
>>>and replaced based on the comments:
>>>
>>>from rpclib.server.django import DjangoApplication # not real import
>>>path.
>>>by:
>>>from rpclib.server.wsgi import WsgiApplication
>>>
>>>and modified the service definition into:
>>>
>>>hello_world_service=WsgiApplication(Application([HelloWorldService],
>>> 'some.tns',
>>> interface=Wsdl11(),
>>> in_protocol=Soap11(),
>>> out_protocol=Soap11()
>>> ))
>>>
>>>Both examples are blocking my server.
>>>
>>>Thanks for your help.
>>>Raoul
>
>--
>Michael Wood <[email protected]>
>
_______________________________________________
Soap mailing list
[email protected]
http://mail.python.org/mailman/listinfo/soap