问题
Look at this example:
from suds.client import Client
url = 'http://xxx.yy.com/etc...'
client = Client(url)
result = client.service.wsExtAuth..ckAuth(username='xx')
The service "wsExtAuth..ckAuth" is not standard (name) and compiler return syntax error. How can I use it?
回答1:
You could try:
getattr(client.service, 'wsExtAuth..ckAuth')(username='xx')
Also, make sure you're using suds-jurko and not the outdated suds
client.
来源:https://stackoverflow.com/questions/34539092/python-suds-client-and-not-standard-service-name