[Soap-Python] Use different namespace to Authentication Model
Burak Arslan
burak.arslan at arskom.com.tr
Fri Aug 10 12:04:39 CEST 2012
Hi Gabriel,
First, thanks for providing a working test case, makes my life much much
easier.
If you apply the attached patch to Spyne trunk and run
test/interop/test_wsi.py, you will see that the WSDL that Spyne produces
is fine, and you're in fact running into a suds bug.
Turns out I'd ran into that bug and fixed it in my personal fork of suds
years ago.
I'm now making available my fork of suds here: https://github.com/plq/suds
Better late than never, I guess :)
The relevant patch seems to be this one:
https://github.com/plq/suds/commit/952cc6927e4c627fb95fdfd3d6dfc23277d87483#L2L722
but to be honest, I have no idea why OR how this fixes the issue.
Hope that helps.
Best,
Burak
On 08/10/12 11:21, Gabriel Monnerat wrote:
> Hello,
>
> I am trying use the WSSE namespace for my Authentication model. But I
> have one exception when I am trying instantiate the Client. i.e
>
> gabriel:~$ python
> Python 2.6.6 (r266:84292, Dec 26 2010, 22:31:48)
> [GCC 4.4.5] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
> >>> from suds.client import Client
> >>> Client("http://localhost:7789/?wsdl")
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> File
> "/usr/local/lib/python2.6/dist-packages/suds-0.4-py2.6.egg/suds/client.py",
> line 112, in __init__
> File
> "/usr/local/lib/python2.6/dist-packages/suds-0.4-py2.6.egg/suds/reader.py",
> line 152, in open
> File
> "/usr/local/lib/python2.6/dist-packages/suds-0.4-py2.6.egg/suds/wsdl.py",
> line 158, in __init__
> File
> "/usr/local/lib/python2.6/dist-packages/suds-0.4-py2.6.egg/suds/wsdl.py",
> line 207, in resolve
> File
> "/usr/local/lib/python2.6/dist-packages/suds-0.4-py2.6.egg/suds/wsdl.py",
> line 661, in resolve
> File
> "/usr/local/lib/python2.6/dist-packages/suds-0.4-py2.6.egg/suds/wsdl.py",
> line 725, in resolveheaders
> Exception: message's0:Security', not-found
>
>
> Here is the soap server that I am using: http://pastebin.com/uJXZ6CdL
>
> Thanks in advance,
>
> --
> Gabriel M. Monnerat
>
>
> _______________________________________________
> Soap mailing list
> Soap at python.org
> http://mail.python.org/mailman/listinfo/soap
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/soap/attachments/20120810/cbcfc11c/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test_wsi.patch
Type: text/x-patch
Size: 2489 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/soap/attachments/20120810/cbcfc11c/attachment.bin>
More information about the Soap
mailing list