[Soap-Python] WS-Security with certificates?

Dieter Maurer dieter at handshake.de
Wed Nov 21 07:46:08 CET 2012


Israel Brewster wrote at 2012-11-20 09:11 -0900:
> ...
>As far as custom headers go, that's not really the problem. I can get the headers into the soap envelope, but I don't have a clue how to generate the proper headers and encrypted body in the first place. According to google, Andr?s Veres-Szentkir?lyi posted a response that looked promising (I never got the message, unless it got lost in my junk mail filter), however I am having problems with that as well. I was able to build the pyxmlsec module with only minimal difficulty, but when I try to import xmlsec I get the following error:

Dariusz suggested to call the "xmlsec" command line interface
directly. This may be indeed the most easy solution.

If you are ready to try another "xmlsec" Python binding, you
could give "dm.xmlsec.binding" a try. It is based on "libxmlsec"
(the XML security library -- you should read its documentation to
get a basic understanding of XML encryption and how it is
supported by "libxmlsec") and "lxml".

Reports have shown that the installation of "dm.xmlsec.binding"
is not always easy: it requires a not too old "libxmlsec1" installation
and an "lxml" installation which exposes the "cython" interface of "lxml"
(these parts are often stripped for "lxml" operating system packages;
in those case, you need a source "lxml" installation and make it
known via an envvar).


More information about the Soap mailing list