肥皂水和选择标签 [英] suds and choice tag
本文介绍了肥皂水和选择标签的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何使用选择"参数生成对方法的请求?
wsdl 的一部分,位于 http://127.0.0.1/service?wsdl:
<前><xs:complexType name="ByA">当我这样做时<代码><预>从 suds.client 导入客户端client = Client("http://127.0.0.1/service?wsdl")打印客户端
我明白了
GetMethod()
没有任何参数.
如何使用 byA 或 byB 调用 GetMethod?
解决方案
这是 suds 中的一个已知错误https://fedorahosted.org/suds/ticket/342
how to generate request to method with "choice" arguments?
part of wsdl at 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>
when I do
from suds.client import Client client = Client("http://127.0.0.1/service?wsdl") print client
I see
GetMethod()
without any arguments.
how I can call GetMethod with byA or with byB?
解决方案
It's a known bug in suds https://fedorahosted.org/suds/ticket/342
这篇关于肥皂水和选择标签的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文