First, thank you for a wonderful SOAP client implementation. I have tried a few of the other options out there, and let me say that the SUDS implementation is fantastic. Truly best of breed.
*cough* but... :-)
I'm encountering a rather strange issue when calling service methods. SUDS is complaining about a _None, or @None object not being found. Could this be an issue with my setup and/or WSDL? It appears to be generated in part of the header portion of the SUDS code that's called when invoking my service method, but I can't see where I could be messing anything up there. The code is simple. Any insight?
I can provide excerpts of the WSDL if needed, but would prefer to keep it internal.
#!/usr/bin/env python
from suds.client import Client import logging
logging.basicConfig(level=logging.INFO) logging.getLogger('suds.client').setLevel(logging.DEBUG)
url = "file:///Users/okay/Projects/auto/nv.xml" client = Client(url)
caller = client.factory.create("ServiceCaller")
caller.UserID = 6674 caller.UserName = 'cpina' caller.Host = 'tetris.local' caller.IPAddress = '213.213.2.213' caller.ServiceName = 'NV'
client.set_options(soapheaders=caller)
print client.service.GetBug(BugID=508000)
##### output ####
ERROR:suds.resolver:(@None) not-found Traceback (most recent call last): File "./test.py", line 23, in <module> print client.service.GetBug(BugID=508000) File "build/bdist.macosx-10.5-i386/egg/suds/client.py", line 229, in __call__ File "build/bdist.macosx-10.5-i386/egg/suds/client.py", line 356, in call File "build/bdist.macosx-10.5-i386/egg/suds/client.py", line 229, in __call__ File "build/bdist.macosx-10.5-i386/egg/suds/client.py", line 399, in call File "build/bdist.macosx-10.5-i386/egg/suds/client.py", line 451, in invoke File "build/bdist.macosx-10.5-i386/egg/suds/bindings/binding.py", line 95, in get_message File "build/bdist.macosx-10.5-i386/egg/suds/bindings/binding.py", line 311, in headercontent File "build/bdist.macosx-10.5-i386/egg/suds/bindings/binding.py", line 259, in mkheader File "build/bdist.macosx-10.5-i386/egg/suds/bindings/marshaller.py", line 391, in process File "build/bdist.macosx-10.5-i386/egg/suds/bindings/marshaller.py", line 406, in append File "build/bdist.macosx-10.5-i386/egg/suds/bindings/marshaller.py", line 139, in append File "build/bdist.macosx-10.5-i386/egg/suds/bindings/marshaller.py", line 307, in append File "build/bdist.macosx-10.5-i386/egg/suds/bindings/marshaller.py", line 200, in append File "build/bdist.macosx-10.5-i386/egg/suds/bindings/marshaller.py", line 405, in append File "build/bdist.macosx-10.5-i386/egg/suds/bindings/marshaller.py", line 540, in start suds.TypeNotFound: Type not found: '_None'
----------------------------------------------------------------------------------- This email message is for the sole use of the intended recipient(s) and may contain confidential information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message. -----------------------------------------------------------------------------------