From dave at ci.com.au Wed Apr 6 02:29:50 2011 From: dave at ci.com.au (Dave Dodd) Date: Wed, 6 Apr 2011 10:29:50 +1000 Subject: [Soap-Python] soaplib 2.0.0beta documentation correction Message-ID: <20110406002949.GA34529@mippet.ci.com.au> Gday folks, I have run into an error in the soaplib 2.0.0 beta documentation's examples regarding Binary Files. The first two examples on the page http://soaplib.github.com/soaplib/2_0/pages/binaryfiles.html fail with the following error reported: Traceback (most recent call last): File "", line 1, in TypeError: wrapper() takes at least 4 arguments (2 given) I tried just executing: >>> Attachment.to_parent_element(a) And the same error is reported. Can anyone clarify what is going on please ? --Dave From dave at ci.com.au Fri Apr 8 06:57:04 2011 From: dave at ci.com.au (Dave Dodd) Date: Fri, 8 Apr 2011 14:57:04 +1000 Subject: [Soap-Python] soaplib support for unsigned integer fields ? Message-ID: <20110408045704.GB61197@mippet.ci.com.au> Hi Folks, I am working on replacing an existing set of SOAP services, currently served out of an IIS server. The published WSDL for the existing services includes a service which has an unsignedInt parameter. I had a quick grope around in the soaplib source particularly in primitive.py to see what I should import to support this field type and I failed to find anything appropriate. If I end up having to match the original WSDL precisely, how could I achieve this and coerce the soaplib WSDL into to showing unsignedInt for a field ? Is my only option to beg for the inclusion of a UnsignedInt in soaplib ? Thanks in advance, -- Dave From dsuch at gefira.pl Fri Apr 8 11:04:30 2011 From: dsuch at gefira.pl (Dariusz Suchojad) Date: Fri, 08 Apr 2011 11:04:30 +0200 Subject: [Soap-Python] WS-Security with sec-wall Message-ID: <4D9ECF9E.4050904@gefira.pl> Hello, this is not directly related to soaplib's development but still, it has to do with SOAP. Just wanted to let you know that sec-wall [1], the security proxy that I've just released, supports client authentication using WS-Security Username Token Profile V1.0 [2] [3], among other things. If you were looking for a nice, clean and Pythonic way to secure your services - here it is. Enjoy! :-) [1] http://sec-wall.gefira.pl/ [2] http://sec-wall.gefira.pl/documentation/ref-docs/sec-config.html#ws-security [3] http://sec-wall.gefira.pl/documentation/usage-examples/ws-security-passwordtext.html cheers, -- Dariusz Suchojad From chris at sydneysys.com Fri Apr 8 21:32:21 2011 From: chris at sydneysys.com (Chris Austin) Date: Fri, 8 Apr 2011 14:32:21 -0500 Subject: [Soap-Python] WS-Security with sec-wall In-Reply-To: <4D9ECF9E.4050904@gefira.pl> References: <4D9ECF9E.4050904@gefira.pl> Message-ID: Thanks Dariusz, I'll have a look. On Fri, Apr 8, 2011 at 4:04 AM, Dariusz Suchojad wrote: > > Hello, > > this is not directly related to soaplib's development but still, it has to > do with SOAP. > > Just wanted to let you know that sec-wall [1], the security proxy that I've > just released, supports client authentication using WS-Security Username > Token Profile V1.0 [2] [3], among other things. If you were looking for a > nice, clean and Pythonic way to secure your services - here it is. Enjoy! > :-) > > [1] http://sec-wall.gefira.pl/ > [2] > http://sec-wall.gefira.pl/documentation/ref-docs/sec-config.html#ws-security > [3] > http://sec-wall.gefira.pl/documentation/usage-examples/ws-security-passwordtext.html > > cheers, > > -- > Dariusz Suchojad > _______________________________________________ > Soap mailing list > Soap at python.org > http://mail.python.org/mailman/listinfo/soap > From bradallen137 at gmail.com Fri Apr 8 21:45:53 2011 From: bradallen137 at gmail.com (Brad Allen) Date: Fri, 8 Apr 2011 14:45:53 -0500 Subject: [Soap-Python] WS-Security with sec-wall In-Reply-To: <4D9ECF9E.4050904@gefira.pl> References: <4D9ECF9E.4050904@gefira.pl> Message-ID: On Fri, Apr 8, 2011 at 4:04 AM, Dariusz Suchojad wrote: > > Hello, > > this is not directly related to soaplib's development but still, it has to > do with SOAP. This list is not intended to be specific to soaplib; it's for any and all Python SOAP solutions. (I'm still hoping to convince the other soap frameworks to move their discussion here...) From dsuch at gefira.pl Fri Apr 8 22:03:35 2011 From: dsuch at gefira.pl (Dariusz Suchojad) Date: Fri, 08 Apr 2011 22:03:35 +0200 Subject: [Soap-Python] WS-Security with sec-wall In-Reply-To: References: <4D9ECF9E.4050904@gefira.pl> Message-ID: <4D9F6A17.2070202@gefira.pl> Brad Allen wrote: > This list is not intended to be specific to soaplib; it's for any and > all Python SOAP solutions. (I'm still hoping to convince the other > soap frameworks to move their discussion here...) Yea, I know, I still remember seeing your original announcement. What I guess I meant was something along the lines of "as opposed to what's been discussed for the previous several months now.." :-) -- Dariusz Suchojad From Marc.Dierckx at messergroup.com Mon Apr 11 10:16:36 2011 From: Marc.Dierckx at messergroup.com (Dierckx, Marc) Date: Mon, 11 Apr 2011 10:16:36 +0200 Subject: [Soap-Python] soaplib 1.0 Message-ID: <1C3CC23436581846A33576755D98BB9C0233F729@RZGUSVEX001.mg.mesroot.loc> Hello, I am utilising soaplib in the django framework and can only utilise soaplib upto version 1.0. When I try to utilise arrays of String as primitive the service does not function. Are there issues with version 1.0 relating to Arrays ? Regards, marc -------------- next part -------------- An HTML attachment was scrubbed... URL: From chris at sydneysys.com Mon Apr 11 17:31:41 2011 From: chris at sydneysys.com (Chris Austin) Date: Mon, 11 Apr 2011 10:31:41 -0500 Subject: [Soap-Python] soaplib 2.0.0beta documentation correction In-Reply-To: <20110406002949.GA34529@mippet.ci.com.au> References: <20110406002949.GA34529@mippet.ci.com.au> Message-ID: Hi Dave, It looks like the Docs are out of date. The correct method signature for "to_parent_element" is to_parent_element(cls, value, tns, parent_elt, name='retval') So the example should look more like: a = Attachment(data="this is my binary data") parent_element = et.Element("parent") Attachment.to_parent_element(a, "tns", parent_element) print et.tostring(parent_element) Sorry for the delay and I hope this helps. On Tue, Apr 5, 2011 at 7:29 PM, Dave Dodd wrote: > Gday folks, > > I have run into an error in the soaplib 2.0.0 beta documentation's examples > regarding Binary Files. > > The first two examples on the page http://soaplib.github.com/soaplib/2_0/pages/binaryfiles.html fail with the following error reported: > > Traceback (most recent call last): > ?File "", line 1, in > TypeError: wrapper() takes at least 4 arguments (2 given) > > I tried just executing: > >>>> Attachment.to_parent_element(a) > > And the same error is reported. ?Can anyone clarify what is going on please ? > > --Dave > _______________________________________________ > Soap mailing list > Soap at python.org > http://mail.python.org/mailman/listinfo/soap > From chris at sydneysys.com Mon Apr 11 17:32:03 2011 From: chris at sydneysys.com (Chris Austin) Date: Mon, 11 Apr 2011 10:32:03 -0500 Subject: [Soap-Python] soaplib support for unsigned integer fields ? In-Reply-To: <20110408045704.GB61197@mippet.ci.com.au> References: <20110408045704.GB61197@mippet.ci.com.au> Message-ID: Hi David, I've been away from the list for a bit so I didn't see this right away. We can add unsigned ints without too much trouble I think. Feel free to head over to the github site and add the feature request. I think it can be added fairly soon after the 2.0 release later this week. On Thu, Apr 7, 2011 at 11:57 PM, Dave Dodd wrote: > Hi Folks, > > I am working on replacing an existing set of SOAP services, currently served > out of an IIS server. > > The published WSDL for the existing services includes a service which has an > unsignedInt parameter. > > I had a quick grope around in the soaplib source particularly in primitive.py > to see what I should import to support this field type and I failed to find > anything appropriate. > > If I end up having to match the original WSDL precisely, how could I achieve > this and coerce the soaplib WSDL into to showing unsignedInt for a field ? > > Is my only option to beg for the inclusion of a UnsignedInt in soaplib ? > > Thanks in advance, > > -- Dave > _______________________________________________ > Soap mailing list > Soap at python.org > http://mail.python.org/mailman/listinfo/soap > From chris at sydneysys.com Mon Apr 11 17:32:32 2011 From: chris at sydneysys.com (Chris Austin) Date: Mon, 11 Apr 2011 10:32:32 -0500 Subject: [Soap-Python] soaplib 1.0 In-Reply-To: <1C3CC23436581846A33576755D98BB9C0233F729@RZGUSVEX001.mg.mesroot.loc> References: <1C3CC23436581846A33576755D98BB9C0233F729@RZGUSVEX001.mg.mesroot.loc> Message-ID: Marc, can you post an example please? On Mon, Apr 11, 2011 at 3:16 AM, Dierckx, Marc wrote: > Hello, > > > > I am utilising soaplib in the django framework and can only utilise soaplib > upto version 1.0. When I try to utilise arrays of String as primitive the > service does not function. Are there issues with version 1.0 relating to > Arrays ? > > > > Regards, > > > > marc > > _______________________________________________ > Soap mailing list > Soap at python.org > http://mail.python.org/mailman/listinfo/soap > > From james.seppi at gmail.com Wed Apr 13 02:41:57 2011 From: james.seppi at gmail.com (James Seppi) Date: Tue, 12 Apr 2011 19:41:57 -0500 Subject: [Soap-Python] Soaplib Models Message-ID: Hi there: I'm trying to use soaplib (2.0.0-beta) to implement a set of web service methods that respond in a specialized language called WaterML 1.0 (schema: http://svn.sdsc.edu/repo/WATER/CUAHSI/WebServices/BaseWofService/WofSchemas/cuahsiTimeSeries_v1_0.xsd ) There are several elements in WaterML that don't appear to have corresponding soaplib Models. For example, in the excerpt shown below the "siteCode" element has attributes "siteID" and "network." Does anyone know how elements like this be modeled/serialized in soaplib? Perhaps an extension of the String Model is the way to go, or is there something I might be missing? Little Bear River at Mendon Road near Mendon, Utah USU-LBR-Mendon Thanks, James -------------- next part -------------- An HTML attachment was scrubbed... URL: From j.fine at open.ac.uk Thu Apr 28 17:59:25 2011 From: j.fine at open.ac.uk (J.Fine) Date: Thu, 28 Apr 2011 16:59:25 +0100 Subject: [Soap-Python] My experience of soaplib and issues: adapter, layers and self Message-ID: Hi As you may know I've been working on a project using soaplib. Recently it's been put on hold, but I've put the code so far up on bitbucket, at https://bitbucket.org/jfine/ou_lts_soap My work so far shows some of the difficulties I have with soaplib, which you might want to address or at least discuss. In this message I'll give three. 1. The name of a function is used as the key when forming a dictionary (even though there's already a perfectly good key available). 2. I'd like to separate out the SOAP stuff into a single layer, into which I can put non-soap-aware functions. In other words, I want an adapter. 3. In the interface there is, to my view, unecessary use of self. Here's an example of creating an adapter (based on soaplib). https://bitbucket.org/jfine/ou_lts_soap/src/96f7873fb915/ou_lts_soap/mathml.py Here's an example of the use of the adapter. https://bitbucket.org/jfine/ou_lts_soap/src/96f7873fb915/test_ou_lts_soap/test_mathml.py And here's the complex stuff I did to make all this interface with soaplib. https://bitbucket.org/jfine/ou_lts_soap/src/96f7873fb915/ou_lts_soap/tools.py And here's where I have to give a function the right name. https://bitbucket.org/jfine/ou_lts_soap/src/96f7873fb915/ou_lts_soap/tools.py#cl-160 I am interested in discussing this stuff, in part because I'm down to give a training session on using classes at EuroPython and some aspects of what we have here might make a good case study. Best regards Jonathan -- The Open University is incorporated by Royal Charter (RC 000391), an exempt charity in England & Wales and a charity registered in Scotland (SC 038302). From raphael.barrois at polyconseil.fr Fri Apr 29 18:54:09 2011 From: raphael.barrois at polyconseil.fr (=?iso-8859-1?Q?Rapha=EBl_Barrois?=) Date: Fri, 29 Apr 2011 18:54:09 +0200 Subject: [Soap-Python] Stubbing an existing webservice Message-ID: <4E8B1637-67FB-4E26-AB1B-A62730249272@polyconseil.fr> Hi, I'm trying to stub an existing webservice in order to test my application without having to connect to the remote server. Ideally, I would like to run a Python server, in order to be able to properly handle the values returned by the stub depending on my test fixtures. The only tool I have found so far is soapUI, but it's Java code, and doesn't seem to allow for an automated definition of test cases. Would this be possible with soaplib (maybe using suds for parsing the remote WSDL ?) Please let me know if you have any suggestions on that topic ; depending on the amount of work required, I think I can add that code to soaplib as well (I think most of the required work would be to find the adequate parameters to fill in the services definitions in order to have soaplib generate exactly the same WSDL as the stubbed one). -- Rapha?l Barrois