问题描述
我想知道如何使用 python 中的 Suds 包以这种格式进行输入:
<ser:createRequest>
<sid>1395120078</sid>
<creatorHandle>cnt:AD97CC8C9432F64CA6D8B3CFD1BC6182</creatorHandle>
<attrVals>
<string>tenant</string>
<string>0xC89B3AC0C638BA4F9B0947237704A080</string>
<string>requested_by</string>
<string>cnt:0C736200A2FBDF40A11F94218B9B5060</string>
<string>customer</string>
<string>cnt:0C736200A2FBDF40A11F94218B9B5060</string>
<string>category</string>
<string>pcat:1121003033</string>
<string>zreporting_met</string>
<string>7304</string>
<string>assignee</string>
<string>cnt:ECC0851E29DF6942BAF997BB540832D5</string>
<string>type</string>
<string>R</string>
<string>group</string>
<string>cnt:9273AA6A285F6F4D8729F42A15A3FAC1</string>
<string>summary</string>
<string>xxxxxxxxxxxxxxxxxxx</string>
<string>description</string>
<string>xxxxxxxxx</string>
</attrVals>
<propertyValues>
</propertyValues>
<template></template>
<attributes>
</attributes>
<newRequestHandle></newRequestHandle>
<newRequestNumber></newRequestNumber>
</ser:createRequest>
我尝试使用此代码,但没有结果
from suds.client import Client
url="https://xxxxxxxxx/USD_R11_WebService?WSDL"
Cliente = Client(url)
resultados2=Cliente.service.createRequest(sid=207184019,creatorHandle="cnt:C0A778CF8EFD2542A9B96B8BCF7B0CAD")
谢谢
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)