「choice」引数を使用してメソッドへのリクエストを生成する方法は?
http://127.0.0.1/service?wsdlの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
そうか
GetMethod()
引数なし。
byAまたはbyBを使用してGetMethodを呼び出すにはどうすればよいですか?