adaniluk
adaniluk

Reputation: 431

PysimpleSOAP - invalid args structure

I encountered problem with calling webservice method, I have

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

but I'm getting error

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}}"]

So I suppose I'm providing incorrect args structure but I don't know how to fix that?

Any suggestions?

Upvotes: 1

Views: 817

Answers (0)

Related Questions