I have the following code:
from suds.client import Client
import logging
logging.basicConfig(level=logging.INFO)
logging.getLogger(\'suds.client\').setLevel
You can use the MessagePlugin to do this (this will work on the newer Jurko fork where last_sent and last_received have been removed)
from suds.plugin import MessagePlugin
class LogPlugin(MessagePlugin):
def sending(self, context):
print(str(context.envelope))
def received(self, context):
print(str(context.reply))
client = Client("http://localhost/wsdl.wsdl", plugins=[LogPlugin()])