Hi,
I know that you are sick of answering this question but really I couldn't
figure out how can I import the location
I followed the TipsAndTricks page
*from suds.client import Client*
from suds.xsd.sxbasic import Import
ns = 'http://schemas.xmlsoap.org/soap/encoding/'
location = 'http://schemas.xmlsoap.org/soap/encoding/'
Import.bind(ns, location)
ns = 'http://www.w3.org/2001/XMLSchema'
location='http://www.w3.org/2001/XMLSchema.xsd'
Import.bind(ns, location)
client = Client(url)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File
"/usr/local/lib/python2.7/dist-packages/suds-0.4.1-py2.7.egg/suds/client.py",
line 119, in __init__
sd = ServiceDefinition(self.wsdl, s)
File
"/usr/local/lib/python2.7/dist-packages/suds-0.4.1-py2.7.egg/suds/servicedefinition.py",
line 57, in __init__
self.addports()
File
"/usr/local/lib/python2.7/dist-packages/suds-0.4.1-py2.7.egg/suds/servicedefinition.py",
line 85, in addports
method = (m.name, binding.param_defs(m))
File
"/usr/local/lib/python2.7/dist-packages/suds-0.4.1-py2.7.egg/suds/bindings/rpc.py",
line 39, in param_defs
return self.bodypart_types(method)
File
"/usr/local/lib/python2.7/dist-packages/suds-0.4.1-py2.7.egg/suds/bindings/binding.py",
line 441, in bodypart_types
raise TypeNotFound(query.ref)
suds.TypeNotFound: Type not found: '(array,
http://www.w3.org/2001/XMLSchema, )'
you can find the wsdl here
https://gist.github.com/1552902
thanks,
--
/--------------------
Milad Rastian