I am having a problem sending a foaming request.
I sent the request to another method using only the following:
from suds.client import Client
client = Client(wsdlurl)
client.service.Login(name, employid)
This came back with the correct answer, as the name and usage are direct children of Login.
But how can I send a request using below:
<soapenv:Body>
<v12:getStuff>
<v12:stuffSelect>
<v12:stuffIDs>
<v12:num></v12:num>
</v12:stuffIDs>
</v12:stuffSelect>
</v12:getStuff>
</soapenv:Body>
</soapenv:Envelope>
The reason for this is that I can add dynamic value to num
I tried like this:
return self.client.service.getStuff.stuffSelect.stuffIDs(**{'stuffID': stuff_id, })
But get this error
AttributeError: 'Method' object has no attribute 'stuffSelector'
source
share