是的,我在某些情况下已经完成了这项工作,其中SOAPpy不适用于给定的架构.这应该让你开始.
import httplib
from xml.dom import minidom
http.request("POST", "/path/to/my/webservice", body=xml, headers = {
"Host": "myservername",
"Content-Type": "text/xml; charset=UTF-8",
"Content-Length": len(xml)
})
print minidom.parseString(http.getresponse().read())
Run Code Online (Sandbox Code Playgroud)
对于内容字符串,我将使用SoapUI手动发出请求,然后模仿XML.