Opened 14 years ago

Closed 14 years ago

Last modified 11 years ago

#552 closed defect (duplicate)

[patch] SOAP support for django

Reported by: upadhyay@… 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


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'

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) (11.9 KB) - added by upadhyay@… 14 years ago., put it in django/contrib (15.8 KB) - added by bethmcnany 11 years ago. - updated WSDL generator (see comments)

Download all attachments as: .zip

Change History (9)

Changed 14 years ago by upadhyay@…

Attachment: added, put it in django/contrib

comment:1 Changed 14 years ago by anonymous

Cc: upadhyay@… added

comment:2 Changed 14 years ago by Adrian Holovaty

milestone: Version 1.0

This isn't necessary for 1.0.

comment:3 Changed 14 years ago by Jacob

Resolution: duplicate
Status: newclosed

This is a subset of #115.

comment:4 Changed 14 years ago by Adrian Holovaty

Version: 1.0

comment:5 Changed 13 years ago by anonymous

Cc: oliver@… added

CC'd self

comment:6 Changed 13 years ago by Mike <mpede@…>

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.

Changed 11 years ago by bethmcnany

Attachment: added - updated WSDL generator (see comments)

comment:7 Changed 11 years ago by bethmcnany

Added the second 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.

Note: See TracTickets for help on using tickets.
Back to Top