How can I output what SUDs is generating/receiving?

前端 未结 7 1842
甜味超标
甜味超标 2020-12-01 07:02

I have the following code:

from suds.client import Client
import logging

logging.basicConfig(level=logging.INFO)
logging.getLogger(\'suds.client\').setLevel         


        
7条回答
  •  鱼传尺愫
    2020-12-01 08:01

    To get only the generated message this also works:

    from suds.client import Client
    import sys
    
    SB_PRIVATE_ACCESS = {"PATH":"https://thisurl.com:443/services/",}
    
    client = Client(SB_PRIVATE_ACCESS['PATH'])
    
    client.set_options(nosend=True)
    
    resp = ......
    
    sys.stdout.buffer.write(resp.envelope)
    

提交回复
热议问题