如何将 suds 对象转换为 xml [英] How to convert suds object to xml
本文介绍了如何将 suds 对象转换为 xml的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
只是我需要将 suds 对象转换为字符串中的 xml.
Simply I need to convert an suds object to xml in string.
response = client.service.somemethod()
response_xml_string = response.as_xml() # something like this
推荐答案
查看客户端构造函数中的 totxt=True 选项.
Take a look on totxt=True option in Client constructor.
这篇关于如何将 suds 对象转换为 xml的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文