xml - 使用 Zeep 问题的工作日 SOAP API
问题描述
我们正在使用 python 的 zeep 包来调用 GMS 租户中的 Workday API。
领域:资源管理
操作:Get_Purchase_Orders
我们能够为资源管理下的每个其他端点获得成功的响应,但是,当我们尝试发送 Get_Purchase_Order 请求时,我们收到以下错误:
错误:
TypeError: {urn:com.workday/bsvc}Bill_To_Address_ReferenceType() got an unexpected keyword argument 'Address_Reference'. Signature: `({Bill_To_Address_Reference: {urn:com.workday/bsvc}Unique_IdentifierObjectType} | {Address_Reference: {urn:com.workday/bsvc}Address_ReferenceType[]})`
代码:
from zeep import Client, Settings
from zeep.wsse.username import UsernameToken
settings = Settings(strict=False, xml_huge_tree=True)
client = Client("<wsdl-url>", wsse=UsernameToken("<Username>", "<Pwd>"), settings=settings)
asDictParam = {"Count": 1}
x = client.service.Get_Purchase_Orders(Response_Filter=asDictParam)
有人可以帮忙吗。
注意:我们检查了 xsd 和 Bill_To_Address_ReferenceType 有 Address_Reference 作为接受的参数。
谢谢
解决方案
推荐阅读
- javascript - 使用 ajax 更新散景图
- android - 看不到我的 Recyclerview Cardview
- string - Hackerrank `super-functional-strings` 由于超时而终止
- python - Exuberant Ctags for python 产生的标签太少
- unit-testing - 如何防止 Pester Mocked Read-Host 在代码覆盖期间提示输入
- android - 无法创建变体“android-manifest-metadata”
- python - 为二进制分类调整 tensorflow LSTM 代码
- php - 获取除静态属性外的所有属性
- .net - 使用 BinaryFormatter 反序列化未知类型的 .NET 对象
- ios - PDFKit 出现错误 -[PDFView setAutoScales:]: unrecognized selector sent to instance