Tracking problem

This commit is contained in:
Roland Hedberg
2013-01-18 15:50:33 +01:00
parent 0e49a3c6d2
commit d7e41d4da7
2 changed files with 3 additions and 0 deletions

View File

@@ -262,6 +262,8 @@ class HTTPBase(object):
soap_message = make_soap_enveloped_saml_thingy(request)
logger.error("SOAP message: %s" % soap_message)
if sign and self.sec:
_signed = self.sec.sign_statement_using_xmlsec(soap_message,
class_name(request),

View File

@@ -161,6 +161,7 @@ def make_soap_enveloped_saml_thingy(thingy, header_parts=None):
_child.tag = '{%s}FuddleMuddle' % DUMMY_NAMESPACE
body.append(_child)
_str = ElementTree.tostring(envelope, encoding="UTF-8")
logger.debug("SOAP precursor: %s" % _str)
# find an remove the namespace definition
i = _str.find(DUMMY_NAMESPACE)
j = _str.rfind("xmlns:", 0, i)