projects
/
shibboleth
/
cpp-opensaml.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Log outbound XML in msg encoders.
[shibboleth/cpp-opensaml.git]
/
saml
/
saml2
/
binding
/
impl
/
SAML2ECPEncoder.cpp
diff --git
a/saml/saml2/binding/impl/SAML2ECPEncoder.cpp
b/saml/saml2/binding/impl/SAML2ECPEncoder.cpp
index
99c4ddd
..
7a1f1ad
100644
(file)
--- a/
saml/saml2/binding/impl/SAML2ECPEncoder.cpp
+++ b/
saml/saml2/binding/impl/SAML2ECPEncoder.cpp
@@
-221,9
+221,12
@@
long SAML2ECPEncoder::encode(
rootElement = env->marshall();
}
rootElement = env->marshall();
}
- string xmlbuf;
- XMLHelper::serialize(rootElement, xmlbuf);
- istringstream s(xmlbuf);
+ stringstream s;
+ s << *rootElement;
+
+ if (log.isDebugEnabled())
+ log.debug("marshalled envelope: %s", s.str().c_str());
+
log.debug("sending serialized envelope");
long ret = genericResponse.sendResponse(s);
log.debug("sending serialized envelope");
long ret = genericResponse.sendResponse(s);