如何将suds对象转换为xml

时间:2015-10-23 13:40:50

标签: xml python-2.7 suds

我需要将suds对象转换为字符串中的xml。

response = client.service.somemethod()
response_xml_string = response.as_xml() # something like this 

1 个答案:

答案 0 :(得分:0)

在Client构造函数中查看totxt = True选项。

相关问题