Hi Chris,

You may want to take a look at http://packages.python.org/twod.wsgi/ which is 
designed to embed WSGI apps in Django.

In our current project, we're achieving the same result using this code: 
http://dpaste.com/hold/573374/

We finish the modules that define our webservices with:
app = Application([...], 'tns', name="...")
(where Application is the class defined in my snippet).

In development we use this URLconf:
urlpatterns = patterns('',
    url(r'^my_ws/', my_ws.as_django_view()),
)

In production, we use directly my_ws.as_wsgi() as a WSGI application. This 
takes care of closing the connections to the database, which doesn't happen if 
you skip Django's request handlers.

Best regards,

Aymeric AUGUSTIN
Polyconseil | 11bis, rue Scribe | 75009 Paris
mob : (+33) 6 22 43 79 99
tel : (+33) 1 58 18 67 40 | fax : (+33) 1 47 42 38 32



On 21 juil. 2011, at 17:20, Tribaal wrote:

> Hi list,
> 
> I am currently working on a Django "integration" for soaplib, to let
> people create a SOAP webservice and hook it in their django urls.py,
> if they fancy.
> 
> I am starting to think that I must however not be the only person on
> the planet trying to do this - did anybody produce a clean and working
> interface to soaplib *2.0* for django? My "solution" is based off a
> snippet I found for soaplib 1.0, but had to be heavily adapted, and
> works-ish (still a problem with the SUDS client I use for testing).
> 
> Should I be the first to try this kind of thing, I will be glad to
> contribute back some code to soaplib. Would a DjangoApplication class
> (in a fashion similar to the WSGI Application class) be welcome?
> 
> Thanks
> 
> - Chris
> _______________________________________________
> Soap mailing list
> [email protected]
> http://mail.python.org/mailman/listinfo/soap

_______________________________________________
Soap mailing list
[email protected]
http://mail.python.org/mailman/listinfo/soap

Reply via email to