Python zeep SOAP调用

我需要使用python zeep转换复杂类型AddObjectData:

<s:complexType name="AddObjectData">
<s:sequence>
<s:choice minOccurs="0" maxOccurs="unbounded">
<s:element minOccurs="0" maxOccurs="1" name="NullVal" type="tns:NullVal"/>
<s:element minOccurs="0" maxOccurs="1" name="BoolVal" type="tns:BoolVal"/>
<s:element minOccurs="0" maxOccurs="1" name="ByteVal" type="tns:ByteVal"/>
<s:element minOccurs="0" maxOccurs="1" name="ShortIntVal" type="tns:ShortIntVal"/>
<s:element minOccurs="0" maxOccurs="1" name="LongIntVal" type="tns:LongIntVal"/>
<s:element minOccurs="0" maxOccurs="1" name="SingleVal" type="tns:SingleVal"/>
<s:element minOccurs="0" maxOccurs="1" name="DoubleVal" type="tns:DoubleVal"/>
<s:element minOccurs="0" maxOccurs="1" name="DateTimeVal" type="tns:DateTimeVal"/>
<s:element minOccurs="0" maxOccurs="1" name="StringVal" type="tns:StringVal"/>
<s:element minOccurs="0" maxOccurs="1" name="CurrencyVal" type="tns:CurrencyVal"/>
<s:element minOccurs="0" maxOccurs="1" name="AddedAttachmentsVal" type="tns:AddedAttachmentsVal"/>
<s:element minOccurs="0" maxOccurs="1" name="ReferenceVal" type="tns:ReferenceVal"/>
<s:element minOccurs="0" maxOccurs="1" name="ReferenceListVal" type="tns:ReferenceListVal"/>
<s:element minOccurs="0" maxOccurs="1" name="ReferenceToUserVal" type="tns:ReferenceToUserVal"/>
</s:choice>
</s:sequence>
<s:attribute name="folderPath" type="s:string"/>
<s:attribute name="fieldMapping" type="s:string"/>
<s:attribute name="saveExflags" type="s:int" use="required"/>
<s:attribute name="username" type="s:string"/>
<s:attribute name="password" type="s:string"/>
</s:complexType>

我只能使用以下属性填充AddObjectData:

AddObjectData={"folderPath":"test","saveExflags":"0"}

但是我不知道如何传递选择元素。

如果有人有任何线索,将不胜感激。

doris331 回答:Python zeep SOAP调用

暂时没有好的解决方案,如果你有好的解决方案,请发邮件至:iooj@foxmail.com
本文链接:https://www.f2er.com/3107495.html

大家都在问