Hi,
I'm currently working with VTiger and I've noticed that the address in
the service port definition is wrong. I am working with them to see
if we can get that fixed, but in the meantime, is there a way that I
can alter the address of a service port programmatically?
Essentially I need to change the address that
client.service.vtigersoapPort points to when it makes a call.
Thanks!
Hi Chris,
I ran into the same problem recent using a different WSDL from
Commission Junction. I'm not a SOAP expert, but apparently their WSDL
is malformed and suds is pretty strict about this stuff. The solution
was to add the following line:
<xsd:import namespace="http://product.domain.cj.com"/>
in two places in the <xsd:schema> block where some of the complex
types were defined. I'd be willing to bet the same type of fix would
fix your problem. If you can send a link to the WSDL I'll try it out
if you can't get it working yourself.
Russ
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
All,
FYI, suds is now included in the fedora distribution. Fedora (8,9,10)
users can simply install and update using package install/update tools
like Yum and PackageManager.
Regards,
Jeff
Hi all,
I'm wondering if client.service.some_method() is threadsafe. Can I
have several outstanding soap calls at once, or do I need to
instantiate a new client per thread? Is there documentation which
describes best practices for using suds in a mult-threaded environment?
Thanks,
Russ
Hi
this probably has been brought up before but I was looking over the tickets
on the site and couldn't resolve my issue.
I've been testing suds and it works great but for the webservice I need to
use for my app it keeps giving this error:
line 694, in mutate
raise TypeNotFound(qref)
suds.TypeNotFound: Type not found: '(schema,
http://www.w3.org/2001/XMLSchema, )'
I try to connect as follows:
from suds.client import Client
from suds.xsd.sxbasic import Import
Import.bind('http://schemas.xmlsoap.org/soap/encoding/')
url = 'http://de-weerdt.net/test/Service.asmx?wsdl'
c = Client(url)
print c.service.submitString("test123")
It fails on making the Client so I suppose its something with the wsdl.
It worked for several other webservices I tested which seem to have similar
wsdl but as I'm not a wsdl expert I don't know what is going on..
any help would be very welcome,
many thanks
Jo
Hello,
looking for a python module for soap client development I also found suds.
My problem: I have to implement a https client authentification for the
client. Is there an (easy) way using suds?
Thanks in advance.
Stefan