[Twisted-Python] Importing twisted.web.soap raises an exception
Trying to use twisted.web.soap raises an exception, saying it cannot import SOAP-module. Why isn't this module in the distribution and where is it located? I'm using Twisted 1.0.6. Best regards, Thomas
On Tue, Jul 01, 2003 at 02:46:19PM +0200, Thomas Weholt ( PRIVAT ) wrote:
Trying to use twisted.web.soap raises an exception, saying it cannot import SOAP-module. Why isn't this module in the distribution and where is it located? I'm using Twisted 1.0.6.
As the docstring of t.w.soap says: "Requires SOAPpy." You can find it at http://pywebsvcs.sf.net/, although I think you need to comment out these lines in t.w.soap to make the latest version work: # fix 2.2 issues with SOAP SOAP.SOAPBuilder.dump_str = SOAP.SOAPBuilder.dump_string SOAP.SOAPBuilder.dump_dict = SOAP.SOAPBuilder.dump_dictionary The docstring should probably updated to include a URL, and those lines removed to reflect the current stable version of SOAPpy... -Andrew.
Ok, it seems to be imported without errors now, but I had to change the line import SOAP to import SOAPpy as SOAP to make it work. Tried it with SOAPpy 0.10.1. Still, it's listed as unstable. Does anybody have any comments on the usability of this module besides that? Thomas ----- Original Message ----- From: "Andrew Bennetts" <andrew-twisted@puzzling.org> To: <twisted-python@twistedmatrix.com> Sent: Tuesday, July 01, 2003 2:54 PM Subject: Re: [Twisted-Python] Importing twisted.web.soap raises an exception
On Tue, Jul 01, 2003 at 02:46:19PM +0200, Thomas Weholt ( PRIVAT ) wrote:
Trying to use twisted.web.soap raises an exception, saying it cannot import SOAP-module. Why isn't this module in the distribution and where is it located? I'm using Twisted 1.0.6.
As the docstring of t.w.soap says: "Requires SOAPpy."
You can find it at http://pywebsvcs.sf.net/, although I think you need to comment out these lines in t.w.soap to make the latest version work:
# fix 2.2 issues with SOAP SOAP.SOAPBuilder.dump_str = SOAP.SOAPBuilder.dump_string SOAP.SOAPBuilder.dump_dict = SOAP.SOAPBuilder.dump_dictionary
The docstring should probably updated to include a URL, and those lines removed to reflect the current stable version of SOAPpy...
-Andrew.
_______________________________________________ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
On Tue, 1 Jul 2003 15:47:20 +0200 "Thomas Weholt \( PRIVAT \)" <2002@weholt.org> wrote:
Still, it's listed as unstable. Does anybody have any comments on the usability of this module besides that?
I seemed to work when I wrote it, but I dunno how interoperable SOAPpy is. I will try to fix it up to work with latest version, and add client support and tests; today, or sometime this week. In general, btw, I would recommend using XML-RPC rather than SOAP unless you have a specific reason not to.
participants (3)
-
Andrew Bennetts
-
Itamar Shtull-Trauring
-
Thomas Weholt ( PRIVAT )