X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=saml%2Fsaml2%2Fbinding%2Fimpl%2FSAML2ECPEncoder.cpp;h=7a1f1adb705a87b2e38c714097f4390854f74fd4;hb=43a515d64c2780e71b3328205ccef1ce6e276cb4;hp=99c4ddd629cd6297b6f5d6422d01da17a134322b;hpb=71c32047b99f8c4d59e214918b0d4904cd8492bc;p=shibboleth%2Fcpp-opensaml.git diff --git a/saml/saml2/binding/impl/SAML2ECPEncoder.cpp b/saml/saml2/binding/impl/SAML2ECPEncoder.cpp index 99c4ddd..7a1f1ad 100644 --- a/saml/saml2/binding/impl/SAML2ECPEncoder.cpp +++ b/saml/saml2/binding/impl/SAML2ECPEncoder.cpp @@ -221,9 +221,12 @@ long SAML2ECPEncoder::encode( 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);