I am getting a 'TypeNotFound: Type not found: ' error when trying to
use the web services at CJ. com.. hoping someone can point out what
might be causing it.
I get the client fine, I get a reply from the server, but something
breaks after that. here is the log of what happens:
DEBUG:suds.client:lookup service-method using
"retrieveLatestTransactions"
DEBUG:suds.client:headers = {'SOAPAction': u'""',
'Content-Type':
'text/xml'}
DEBUG:suds.client:sending to
(
https://rtpubcommission.api.cj.com/services/realtimeCommissionServiceV2
)
message:
<SOAP-ENV:Envelope
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/
"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:tns="http://api.cj.com
"
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Header/>
<SOAP-ENV:Body>
<tns:retrieveLatestTransactions>
<tns:developerKey>NOTHING TO SEE HERE</tns:developerKey>
<tns:websiteIds></tns:websiteIds>
<tns:lookBackXHours>16</tns:lookBackXHours>
<tns:advertiserIds></tns:advertiserIds>
<tns:countries></tns:countries>
<tns:adIds></tns:adIds>
<tns:includeDetails></tns:includeDetails>
<tns:sortBy></tns:sortBy>
<tns:sortOrder></tns:sortOrder>
</tns:retrieveLatestTransactions>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
DEBUG:suds.client:http succeeded:
<soap:Envelope
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance
"><soap:Body><retrieveLatestTransactionsResponse
xmlns="http://api.cj.com
"><out xmlns="http://api.cj.com"><count
xmlns="http://transaction.service.cj.com
">1</count><transactions xmlns="http://
transaction.service.cj.com"><ns1:RealTimeCommissionDataV2
xmlns:ns1="http://transaction.lucene.service.cj.com
"><adId
xmlns="http://transaction.lucene.service.cj.com">10552745</
adId><advertiserId xmlns="http://
transaction.lucene.service.cj.com">2376886</
advertiserId><advertiserName
xmlns="http://transaction.lucene.service.cj.com
">magmic games, inc.</advertiserName><commissionAmount
xmlns="http://transaction.lucene.service.cj.com
">1.398</commissionAmount><country
xmlns="http://transaction.lucene.service.cj.com
"></country><details
xmlns="http://transaction.lucene.service.cj.com" /
<eventDate xmlns="http://
transaction.lucene.service.cj.com">2008-12-17T21:20:16-08:00</
eventDate><orderId xmlns="http://
transaction.lucene.service.cj.com">884765</orderId><saleAmount
xmlns="http://transaction.lucene.service.cj.com
">6.99</saleAmount><sid xmlns="http://
transaction.lucene.service.cj.com">o4+p4+u1</sid><websiteId
xmlns="http://transaction.lucene.service.cj.com
">3244765</websiteId></ns1:RealTimeCommissionDataV2></transactions></
out></retrieveLatestTransactionsResponse></soap:Body></soap:Envelope>
Traceback (most recent call last):
File "<console>", line 1, in <module>
File "build/bdist.macosx-10.5-i386/egg/suds/client.py", line 415,
in __call__
return client.invoke(args)
File "build/bdist.macosx-10.5-i386/egg/suds/client.py", line 468,
in invoke
result = self.send(msg)
File "build/bdist.macosx-10.5-i386/egg/suds/client.py", line 496,
in send
result = self.succeeded(binding, reply)
File "build/bdist.macosx-10.5-i386/egg/suds/client.py", line 553,
in succeeded
r, p = binding.get_reply(self.method, reply)
File "build/bdist.macosx-10.5-i386/egg/suds/bindings/binding.py",
line 150, in get_reply
result = unmarshaller.process(nodes[0], resolved)
File "build/bdist.macosx-10.5-i386/egg/suds/bindings/
unmarshaller.py", line 302, in process
return UMBase.process(self, content)
File "build/bdist.macosx-10.5-i386/egg/suds/bindings/
unmarshaller.py", line 87, in process
data, result = self.append(content)
File "build/bdist.macosx-10.5-i386/egg/suds/bindings/
unmarshaller.py", line 103, in append
self.append_children(content)
File "build/bdist.macosx-10.5-i386/egg/suds/bindings/
unmarshaller.py", line 180, in append_children
cdata, cval = self.append(cont)
File "build/bdist.macosx-10.5-i386/egg/suds/bindings/
unmarshaller.py", line 101, in append
self.start(content)
File "build/bdist.macosx-10.5-i386/egg/suds/bindings/
unmarshaller.py", line 320, in start
found = self.resolver.find(content.node)
File "build/bdist.macosx-10.5-i386/egg/suds/resolver.py", line 362,
in find
pushed = self.push(result)
File "build/bdist.macosx-10.5-i386/egg/suds/resolver.py", line 257,
in push
item = (item, item.resolve())
File "build/bdist.macosx-10.5-i386/egg/suds/xsd/sxbasic.py", line
672, in resolve
raise TypeNotFound(qref)
TypeNotFound: Type not found: '(ArrayOfRealTimeCommissionDataV2,
http://transaction.lucene.service.cj.com
, )'
Any help would be appreciated/
Thanks
CB