Hmmm, I'm not quite there yet.
client = SoapClient( location = ws_location, action = ws_action, # SOAPAction namespace = ws_namespace, soap_ns='soap', ns = False, exceptions=True, http_headers={'Authorization': "Basic %s" % encoded}, trace=True) params = SimpleXMLElement("""<?xml version="1.0" encoding="UTF-8"?> <UDIService><control>DON</control><action></action> <node>25 C0 F0 1</node><flag>65531</flag> </UDIService>""") response = client.call('service',params) When I run it, I get an error on the console, from rocket, presumably during the 'send' part of client.call(): ERROR:Rocket.Errors.Thread-2:Traceback (most recent call last): File "/home/david/Documents/web2py/gluon/rocket.py", line 1337, in run self.run_app(conn) File "/home/david/Documents/web2py/gluon/rocket.py", line 1851, in run_app self.write(data, sections) File "/home/david/Documents/web2py/gluon/rocket.py", line 1773, in write self.conn.sendall(data) File "/usr/lib/python2.7/socket.py", line 224, in meth return getattr(self._sock,name)(*args) TypeError: must be convertible to a buffer, not SimpleXMLElement I believe this happening after I get past client.py line #193 (in call()), and in fact I think I'm at line #240. --> send() which does the HTTP request at line #268. Do I need to provide a logger instance to catch all the debug info? I am a novice at Python logging, being too given to just use print and watch the console. /dps -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.