From Stefan.Witzel at zvw.uni-goettingen.de Wed Dec 3 08:08:57 2008 From: Stefan.Witzel at zvw.uni-goettingen.de (Witzel, Stefan) Date: Wed, 3 Dec 2008 09:08:57 +0100 Subject: [Fedora-suds-list] https client authentification Message-ID: <4BB81F3815C1B146881AA04D942EEFED024B93@UVWEXC-VS1.zv.uni-goettingen.de> 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 -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 5060 bytes Desc: not available URL: From stephen_nesbitt at alumni.cmc.edu Thu Dec 4 02:22:19 2008 From: stephen_nesbitt at alumni.cmc.edu (Stephen Nesbitt) Date: Wed, 3 Dec 2008 18:22:19 -0800 Subject: [Fedora-suds-list] Suds Exception: Exception: tag (artist), not-found Message-ID: <200812031822.19386.stephen_nesbitt@alumni.cmc.edu> Hi All: I am trying to query the SOAP service at the www.lyricwiki.org. The wsdl is here: http://lyricwiki.org/server.php?wsdl The query is failing with a general exception with regard to tag not found. I've run this with log level debug and I am getting a response with the correct content. So there is something else going on. Following is the log and the exception. This was a query for getArtist and to avoid excessive output I used a non-existent artist. The same exception occurs if a valid artist is used. Thanks in advance for the help. -steve c1.service.getArtist("dummy") DEBUG:suds.xsd.query:TypeQuery:0x2141560, found builtin (string) DEBUG:suds.bindings.marshaller:processing: (Content){ tag = "artist" value = "dummy" type = } DEBUG:suds.bindings.marshaller:created - node: DEBUG:suds.metrics:message for 'LyricWikiPort:getArtist' created: 1 (ms) DEBUG:suds.client:sending to (http://lyricwiki.org/server.php) message: dummy DEBUG:suds.client:headers = {'SOAPAction': u'"urn:LyricWiki#getArtist"', 'Content-Type': 'text/xml'} DEBUG:suds.transport:sending to (http://lyricwiki.org/server.php) message: dummy DEBUG:suds.client:http succeeded: dummy DEBUG:suds.metrics:dummy sax duration: 0 (ms) DEBUG:suds.xsd.query:TypeQuery:0x21417e8, found builtin (string) DEBUG:suds.xsd.query:(u'AlbumDataArray', u'urn:LyricWiki'), found as: --------------------------------------------------------------------------- Exception Traceback (most recent call last) /home/users/snesbitt/bin/ in () /home/users/snesbitt/lib/python2.5/site-packages/suds-0.3.3- py2.5.egg/suds/client.py in __call__(self, *args, **kwargs) 225 def __call__(self, *args, **kwargs): 226 target = self.__wrapped__ --> 227 return target.call(*args, **kwargs) 228 229 /home/users/snesbitt/lib/python2.5/site-packages/suds-0.3.3- py2.5.egg/suds/client.py in call(self, *args, **kwargs) 352 """ 353 method = self.resolve(self.name(), strict=False) --> 354 return method(*args, **kwargs) 355 356 /home/users/snesbitt/lib/python2.5/site-packages/suds-0.3.3- py2.5.egg/suds/client.py in __call__(self, *args, **kwargs) 225 def __call__(self, *args, **kwargs): 226 target = self.__wrapped__ --> 227 return target.call(*args, **kwargs) 228 229 /home/users/snesbitt/lib/python2.5/site-packages/suds-0.3.3- py2.5.egg/suds/client.py in call(self, *args, **kwargs) 391 if not self.faults(): 392 try: --> 393 return client.invoke(args, kwargs) 394 except WebFault, e: 395 return (500, e) /home/users/snesbitt/lib/python2.5/site-packages/suds-0.3.3- py2.5.egg/suds/client.py in invoke(self, args, kwargs) 453 self.method.qname, timer) 454 timer.start() --> 455 result = self.send(msg) 456 timer.stop() 457 metrics.log.debug( /home/users/snesbitt/lib/python2.5/site-packages/suds-0.3.3- py2.5.egg/suds/client.py in send(self, msg) 478 request.headers = self.headers() 479 reply = transport.send(request) --> 480 result = self.succeeded(binding, reply) 481 except TransportError, e: 482 if e.httpcode in (202,204): /home/users/snesbitt/lib/python2.5/site-packages/suds-0.3.3- py2.5.egg/suds/client.py in succeeded(self, binding, reply) 510 log.debug('http succeeded:\n%s', reply) 511 if len(reply) > 0: --> 512 r, p = binding.get_reply(self.method, reply) 513 self.last_received(r) 514 if self.options.faults: /home/users/snesbitt/lib/python2.5/site-packages/suds-0.3.3- py2.5.egg/suds/bindings/binding.py in get_reply(self, method, reply) 127 return (replyroot, result) 128 if len(nodes) > 1: --> 129 result = self.reply_composite(rtypes, nodes) 130 return (replyroot, result) 131 if len(nodes) == 1: /home/users/snesbitt/lib/python2.5/site-packages/suds-0.3.3- py2.5.egg/suds/bindings/binding.py in reply_composite(self, rtypes, nodes) 175 rt = dictionary.get(tag, None) 176 if rt is None: --> 177 raise Exception('tag (%s), not-found' % tag) 178 resolved = rt.resolve(nobuiltin=True) 179 sobject = unmarshaller.process(node, resolved) From jo.plaete at gmail.com Sun Dec 7 22:54:09 2008 From: jo.plaete at gmail.com (Jo Plaete) Date: Sun, 7 Dec 2008 23:54:09 +0100 Subject: [Fedora-suds-list] suds.TypeNotFound: Type not found: '(schema, http://www.w3.org/2001/XMLSchema, )' Message-ID: <1d6067cb0812071454o26d8e929p17b592b39684249f@mail.gmail.com> 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: From russellneufeld at gmail.com Wed Dec 10 02:28:01 2008 From: russellneufeld at gmail.com (Russell Neufeld) Date: Tue, 9 Dec 2008 21:28:01 -0500 Subject: [Fedora-suds-list] Suds and threads Message-ID: <573584AB-4E96-46FE-8A78-DB047BA88A0B@gmail.com> 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 From jortel at redhat.com Thu Dec 11 15:31:45 2008 From: jortel at redhat.com (Jeff Ortel) Date: Thu, 11 Dec 2008 10:31:45 -0500 Subject: [Fedora-suds-list] Suds in Fedora Message-ID: <49413261.1050701@redhat.com> 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 From jortel at redhat.com Thu Dec 11 15:33:32 2008 From: jortel at redhat.com (Jeff Ortel) Date: Thu, 11 Dec 2008 10:33:32 -0500 Subject: [Fedora-suds-list] Suds in Fedora Message-ID: <494132CC.6000400@redhat.com> Forget to mention, the fedora package name is python-suds. From chris at apeboymonkeygirl.com Thu Dec 18 08:17:27 2008 From: chris at apeboymonkeygirl.com (chris breshears) Date: Thu, 18 Dec 2008 01:17:27 -0700 Subject: [Fedora-suds-list] Hoping someone can help with this error Message-ID: 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: NOTHING TO SEE HERE 16 DEBUG:suds.client:http succeeded: 1105527452376886magmic games, inc.1.398
2008-12-17T21:20:16-08:008847656.99o4+p4+u13244765 Traceback (most recent call last): File "", line 1, in 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 From russellneufeld at gmail.com Thu Dec 18 18:16:37 2008 From: russellneufeld at gmail.com (Russell Neufeld) Date: Thu, 18 Dec 2008 13:16:37 -0500 Subject: [Fedora-suds-list] Re: Hoping someone can help with this error (chris breshears) Message-ID: <202F88E5-09D2-4BE3-932E-C48F5BFB2B43@gmail.com> 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: in two places in the 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 From jet.travel.solutions at gmail.com Sun Dec 28 04:33:14 2008 From: jet.travel.solutions at gmail.com (Dan Probert) Date: Sat, 27 Dec 2008 21:33:14 -0700 Subject: [Fedora-suds-list] Duke Jets - Reducing cost... Message-ID: <808c7ce742508370f84933850019151d@gmail.com> An HTML attachment was scrubbed... URL: From momobaxter at gmail.com Wed Dec 31 21:52:29 2008 From: momobaxter at gmail.com (Itsa Me, Momo!) Date: Wed, 31 Dec 2008 16:52:29 -0500 Subject: [Fedora-suds-list] SUDS and Changing the Service Port Address Message-ID: <2F51C1B5-28E7-4A1F-9B51-9278C2B96CFA@gmail.com> 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!