From bradallen137 at gmail.com Sat Feb 8 18:10:29 2014 From: bradallen137 at gmail.com (Sheila Allen) Date: Sat, 8 Feb 2014 11:10:29 -0600 Subject: [Soap-Python] backlog of old postings Message-ID: Hi Python SOAP list, Sorry I lapsed on my list moderation chores...there were a couple of posts from the past few months which were legitimate non-spam messages to the list, which had gotten stuck and needed to be approved. I'm not much involved in in this list anymore, so if anyone else wants to take over list moderation, let me know. Otherwise I'll keep checking it once in awhile. --Sheila (formerly Brad) Allen -------------- next part -------------- An HTML attachment was scrubbed... URL: From ovnicraft at gmail.com Sat Feb 8 18:52:33 2014 From: ovnicraft at gmail.com (Ovnicraft) Date: Sat, 8 Feb 2014 12:52:33 -0500 Subject: [Soap-Python] WSSE In-Reply-To: <5087369cbc019085f1b8194fcd75466f.squirrel@squirrel.asgardian.be> References: <5087369cbc019085f1b8194fcd75466f.squirrel@squirrel.asgardian.be> Message-ID: On Fri, Nov 22, 2013 at 2:20 AM, Thierry Leurent < thierry.leurent at asgardian.be> wrote: > Hello, > > I must read a SOAP request, add a WS-Security hearder and send it. > I search in Internet, I found informations about some framework like PyXB > but never a complete documentation. > > I try to understand the PyXB code, but I'm not a expert in Python and in > SOAP, and I don't understand the code. > > Where can I find samples, doc and any informartions about PyXB, an other > framework or another way to develop a solution ? > Dont worry and be happy: https://bitbucket.org/ovnicraft/suds/ You can check the PR related, we have an issue about ISO format, i am fixing it. Regards, > > Thanks > > > -- > Thierry Leurent > Phone : +32 476/20.23.98 > > > > _______________________________________________ > Soap mailing list > Soap at python.org > https://mail.python.org/mailman/listinfo/soap > -- Cristian Salamea @ovnicraft -------------- next part -------------- An HTML attachment was scrubbed... URL: From dieter at handshake.de Sat Feb 8 20:17:39 2014 From: dieter at handshake.de (Dieter Maurer) Date: Sat, 8 Feb 2014 20:17:39 +0100 Subject: [Soap-Python] lxml, suds help In-Reply-To: References: Message-ID: <21238.33491.628887.427418@localhost.localdomain> Ismar Sehic wrote at 2013-9-20 16:02 +0200: >i'm probably very annoying and boring with these python web service :)and >sorry for the previous message reply subject,wont happen again... >the thing is, i'm provided with some service provider documentation, >including xml request example, xml response example, wsdl file for the >protocol defintion, and xsd file for every request type. >i've played around with LXML and SUDS, and i got this : If you are using "suds", you usually do not use "lxml" (at least not for the parsing and construction of the SOAP messages). Instead, you create a "suds" client (as you have done in the code you have posted (and which I did not cite). The suds client has a "factory" method. It allows you to create Python objects corresponding to the types used by the webservice. You can populate those objects by assigning values to its attributes. Usually "print obj" shows you which attributes may be relevant. In addition, the suds client has an attribute "service". And this service object has as methods all the methods supported by the webservice. In a simple case, using "suds" looks like this: from suds.client import Client c = Client() print c.service.(...) # this calls the webservice's with the provided arguments) In more complicated cases (when the method arguments have a complex type), it looks like this: from suds.client import Client c = Client() obj = c.factory("") obj. = .... print c.service.(..., obj, ...) -- Dieter From dsuch at zato.io Sat Feb 15 13:28:54 2014 From: dsuch at zato.io (Dariusz Suchojad) Date: Sat, 15 Feb 2014 13:28:54 +0100 Subject: [Soap-Python] SOAP/Suds with Zato ESB and app server Message-ID: Hi there, I'd like to let you know that Zato now supports consuming SOAP services directly out of WSDLs using an embedded Suds client. Please check it out here for a usage example that translates SOAP into REST/JSON. https://zato.io/blog/posts/secure-scalable-and-dynamic-invocation-of-soap-services-with-zato-and-suds.html https://zato.io/docs/ The work is based on the excellent Suds fork by Cristian Salamea over at https://bitbucket.org/ovnicraft/suds/ and was sponsored by Forbrugerr?det T?nk http://taenk.dk/ cheers, -- Dariusz Suchojad https://zato.io ESB, SOA and cloud integrations in Python From ovnicraft at gmail.com Sat Feb 15 19:21:04 2014 From: ovnicraft at gmail.com (Ovnicraft) Date: Sat, 15 Feb 2014 13:21:04 -0500 Subject: [Soap-Python] SOAP/Suds with Zato ESB and app server In-Reply-To: References: Message-ID: On Sat, Feb 15, 2014 at 7:28 AM, Dariusz Suchojad wrote: > Hi there, > > I'd like to let you know that Zato now supports consuming SOAP services > directly out of WSDLs using an embedded Suds client. > > Please check it out here for a usage example that translates SOAP into > REST/JSON. > > > https://zato.io/blog/posts/secure-scalable-and-dynamic-invocation-of-soap-services-with-zato-and-suds.html > > https://zato.io/docs/ > > The work is based on the excellent Suds fork by Cristian Salamea over at > https://bitbucket.org/ovnicraft/suds/ and was sponsored by > Thanks for named me friend, i hope merge my changes ! Congrats for this Zato improvement. Regards, > Forbrugerr?det T?nk > > http://taenk.dk/ > > cheers, > > -- > Dariusz Suchojad > > https://zato.io > ESB, SOA and cloud integrations in Python > > _______________________________________________ > Soap mailing list > Soap at python.org > https://mail.python.org/mailman/listinfo/soap > -- Cristian Salamea @ovnicraft -------------- next part -------------- An HTML attachment was scrubbed... URL: From devcom at infinitiv.com Tue Feb 11 01:49:00 2014 From: devcom at infinitiv.com (Scobie Smith) Date: Tue, 11 Feb 2014 00:49:00 -0000 Subject: [Soap-Python] trouble calling service (pysimplesoap) Message-ID: <007b01cf26c0$aa71ba30$ff552e90$@infinitiv.com> Hi, I'm relatively new to Python and certainly new to consuming web services via Python. I have a WCF (.NET) service (SOAP), which I am trying to call from Python. I've tried osa, but that failed to parse the wsdl successfully. (I'm not sure what the easiest/best library is....) Now I'm using pysimplesoap, but I get the following error. My service has a no-op method, for testing purposes: void NoOp(). In other words, the service method does absolutely nothing and returns nothing. This is just to test that pysimplesoap can successfully call the method. Here is my python code: from pysimplesoap.client import SoapClient wsdl_url = 'http://localhost:8733/Design_Time_Addresses/LexemeRepositoryServiceLibrary/ LexemeRepositoryService/?wsdl' client = SoapClient(wsdl=wsdl_url) s = client.NoOp() print(s) The code fails on the call to NoOp() with the following output: Traceback (most recent call last): File "lexsoap.py", line 8, in s = client.NoOp() File "C:\Python33\lib\site-packages\pysimplesoap-1.10-py3.3.egg\pysimplesoap\clie nt.py", line 141, in File "C:\Python33\lib\site-packages\pysimplesoap-1.10-py3.3.egg\pysimplesoap\clie nt.py", line 285, in wsdl_call File "C:\Python33\lib\site-packages\pysimplesoap-1.10-py3.3.egg\pysimplesoap\clie nt.py", line 207, in call File "C:\Python33\lib\site-packages\pysimplesoap-1.10-py3.3.egg\pysimplesoap\clie nt.py", line 236, in send File "C:\Python33\lib\site-packages\pysimplesoap-1.10-py3.3.egg\pysimplesoap\tran sport.py", line 125, in request UnboundLocalError: local variable 'f' referenced before assignment Since my code does nothing, this looks like a problem within pysimplesoap. When I examine transport.py, the request function is this: def request(self, url, method="GET", body=None, headers={}): req = urllib2.Request(url, body, headers) try: f = self.request_opener(req, timeout=self._timeout) except urllib2.HTTPError as f: if f.code != 500: raise return f.info(), f.read() I'm not inclined to debug pysimplesoap, so if anyone has any thoughts, I think you in advance.... Thanks. S. Smith -------------- next part -------------- An HTML attachment was scrubbed... URL: