Has anyone been able to get the suds soap library to work with the NetSuite WSDL? I get this error when I try to create a client.
from suds.client import Client
#url = 'http://mssoapinterop.org/asmx/simple.asmx?WSDL'
url = 'https://webservices.netsuite.com/wsdl/v2009_2_0/netsuite.wsdl'
client = Client(url)
print client
Traceback (most recent call last):
client = Client(url)
File "build\bdist.win32\egg\suds\client.py", line 112, in __init__
File "build\bdist.win32\egg\suds\reader.py", line 152, in open
File "build\bdist.win32\egg\suds\wsdl.py", line 158, in __init__
File "build\bdist.win32\egg\suds\wsdl.py", line 207, in resolve
File "build\bdist.win32\egg\suds\wsdl.py", line 662, in resolve
File "build\bdist.win32\egg\suds\wsdl.py", line 757, in resolvefaults
Exception: fault 'ExceededRecordCountFault' not defined in portType 'NetSuitePortType'
https://webservices.netsuite.com/wsdl/v2010_2_0/netsuite.wsdl
I found that it was failing on a validation between this part:
and this part:
I changed this:
to this:
The modification allows Suds to create the client. Like John mentioned, it does take forever to parse(more than two minutes). I haven’t tried using checkAsyncStatus to see if it works.