#552 closed defect (duplicate)
[patch] SOAP support for django
Reported by: | Owned by: | Adrian Holovaty | |
---|---|---|---|
Component: | Tools | Version: | |
Severity: | normal | Keywords: | |
Cc: | upadhyay@…, oliver@… | Triage Stage: | Unreviewed |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
In line with XMLRPC support for django I have a work in progress for SOAP support, semantics is very much similer to what is described there, the service is a view, you map the view in urlconf, and use a callable instance SimpleSOAPView. Register methods/instances to be served by using the SOAPpy's Server API. Eg:
from django.contrib.soap import SimpleSOAPView soap = SimpleSOAPView() def f2(): return 'f2' soap.registerFunction(f2)
This has a dependency requirement of SOAPpy.
One thing to note is the API's for SimpleXMLRPCView and SimpleSOAPView are not compatible, function names are different, one support unregistering while other does not etc; one of the reasons is that serves as a reminder that XMLRPC and SOAP are actually different, SOAP is much more configurable, supports authentication etc, which I have not used myself so have little idea, but they are different, and anyone knowing SOAPpy or xmlrpc will not have to learn anything new while using them over django. Practicality beats purity?
Attachments (2)
Change History (9)
by , 19 years ago
comment:1 by , 19 years ago
Cc: | added |
---|
comment:4 by , 19 years ago
Version: | 1.0 |
---|
comment:6 by , 17 years ago
I'm just about to try this out. I've used SOAPpy, and initially I really liked it.
I've been directed by new management to use SOAP with everything now.
I'm willing to contribute to this project, if not get others here at the university involved.
Please let me know where I can fit into this initiative.
comment:7 by , 15 years ago
Added the second soap.py attachment. I know the ticket is closed, but if you search for "Django SOAP server" this is one of the oft-mentioned links. I am using this file, and the WSDL generator was not working (at least for Python 2.6). So I figured if anyone else comes across this in the future this may be helpful.
You have to read the comments though, or it won't work! I'm sure I coded inefficiently so feel free to fix that, also.
soap.py, put it in django/contrib