肥皂水和选择标签

And*_*sov 4 python wsdl choice suds

如何使用"choice"参数生成对方法的请求?

wsdl的一部分在http://127.0.0.1/service?wsdl:

<xs:complexType name="ByA">
<xs:sequence>
...
</xs:sequence>
</xs:complexType>
<xs:complexType name="ByB">
<xs:sequence>
...
</xs:sequence>
</xs:complexType>

<xs:complexType name="GetMethodRequest">
<xs:choice>
<xs:element name="byA" type="s0:ByA" />
<xs:element name="byB" type="s0:ByB" />
</xs:choice>
</xs:complexType>

当我做

from suds.client import Client
client = Client("http://127.0.0.1/service?wsdl")
print client
Run Code Online (Sandbox Code Playgroud)

我知道了

GetMethod()

没有任何论据.

如何用byA或byB调用GetMethod?

And*_*sov 5

这是泡沫中的一个已知错误 https://fedorahosted.org/suds/ticket/342