我使用Python库zeep与SOAP服务对话。文档中需要的参数之一是List<String>
类型,我在WSDL中找到了以下内容:
<xs:element minOccurs="0" maxOccurs="1" name="IncludedLenders" type="tns:ArrayOfString"/>
我相信AraryOfString
的定义是:
我如何让zeep产生价值?我试过:
"IncludedLenders": [
"BMS",
"BME"
]
但这会产生:
<ns0:IncludedLenders>
<ns0:string>BMS</ns0:string>
</ns0:IncludedLenders>
而不是:
<ns0:IncludedLenders>
<ns0:string>BMS</ns0:string>
<ns0:string>BME</ns0:string>
</ns0:IncludedLenders>
有什么想法可以产生后一个?在
我发现了。首先,我需要提取
ArrayOfString
类型:然后按如下方式创建:
^{pr2}$相关问题 更多 >
编程相关推荐