1

Webservice メソッドの呼び出しで問題が発生しました。

client = SoapClient(wsdl="address")
countries = {'countryCode':1, 'webapiKey':'apiKey'};
client.doGetCountries(**countries)

しかし、私はエラーが発生しています

ValueError: Invalid Args Structure. Errors: ["type mismatch for value. master(<class 'dict'>): {'DoGetCountriesRequest': *{'countryCode': <class 'int'>, 'webapiKey': <class 'str'>}*}, test(<class 'dict'>): {'DoGetCountriesRequest': {'webapiKey': 'webapi', 'countryCode': 1}}"]

だから私は間違った引数構造を提供していると思いますが、それを修正する方法がわかりませんか?

助言がありますか?

4

0 に答える 0