[Fedora-suds-list] Trouble with amazon SOAP services
Priit Laes
plaes at plaes.org
Sun Jan 11 14:25:47 UTC 2009
Hi!
I am playing around with amazon's SOAP interface with 0.3.3 and
0.3.4_beta, but ran into a backtrace problem. This is the test script:
#!/usr/bin/python
from suds.client import Client
AWS_ACCESS_KEY='' # masked out (but, backtrace happens even with the right key)
url = 'http://ecs.amazonaws.com/AWSECommerceService/2008-08-19/AWSECommerceService.wsdl'
client = Client(url)
req = client.factory.create('ItemSearchRequest')
req.Keywords = 'Canon lens'
res = client.service.ItemSearch('US', AWS_ACCESS_KEY, '', '', 'False', req)
print res
...which runs into following problem/backtrace:
plaes at chi ~/code/soaptest $ ./test.py
No handlers could be found for logger "suds.resolver"
Traceback (most recent call last):
File "./test.py", line 14, in <module>
res = client.service.ItemSearch('US', AWS_ACCESS_KEY, '', '', 'False', req)
File "//usr/lib64/python2.5/site-packages/suds/client.py", line 229, in __call__
return target.call(*args, **kwargs)
File "//usr/lib64/python2.5/site-packages/suds/client.py", line 356, in call
return method(*args, **kwargs)
File "//usr/lib64/python2.5/site-packages/suds/client.py", line 229, in __call__
return target.call(*args, **kwargs)
File "//usr/lib64/python2.5/site-packages/suds/client.py", line 399, in call
return client.invoke(args, kwargs)
File "//usr/lib64/python2.5/site-packages/suds/client.py", line 457, in invoke
result = self.send(msg)
File "//usr/lib64/python2.5/site-packages/suds/client.py", line 482, in send
result = self.succeeded(binding, reply)
File "//usr/lib64/python2.5/site-packages/suds/client.py", line 514, in succeeded
r, p = binding.get_reply(self.method, reply)
File "//usr/lib64/python2.5/site-packages/suds/bindings/binding.py", line 129, in get_reply
result = self.reply_composite(rtypes, nodes)
File "//usr/lib64/python2.5/site-packages/suds/bindings/binding.py", line 179, in reply_composite
sobject = unmarshaller.process(node, resolved)
File "//usr/lib64/python2.5/site-packages/suds/bindings/unmarshaller.py", line 302, in process
return UMBase.process(self, content)
File "//usr/lib64/python2.5/site-packages/suds/bindings/unmarshaller.py", line 87, in process
data, result = self.append(content)
File "//usr/lib64/python2.5/site-packages/suds/bindings/unmarshaller.py", line 103, in append
self.append_children(content)
File "//usr/lib64/python2.5/site-packages/suds/bindings/unmarshaller.py", line 180, in append_children
cdata, cval = self.append(cont)
File "//usr/lib64/python2.5/site-packages/suds/bindings/unmarshaller.py", line 101, in append
self.start(content)
File "//usr/lib64/python2.5/site-packages/suds/bindings/unmarshaller.py", line 323, in start
raise TypeNotFound(content.node.qname())
suds.TypeNotFound: Type not found: 'HTTPHeaders'
Cheers,
Priit :)
More information about the fedora-suds-list
mailing list