Switch to streams in SOAP responders.
[shibboleth/cpp-opensaml.git] / saml / saml2 / binding / impl / SAML2SOAPEncoder.cpp
index 7b56dee..3285ad7 100644 (file)
@@ -106,9 +106,8 @@ long SAML2SOAPEncoder::encode(
                 rootElement = env->marshall();
             }
             
-            string xmlbuf;
-            XMLHelper::serialize(rootElement, xmlbuf);
-            istringstream s(xmlbuf);
+            stringstream s;
+            s << *rootElement;
             log.debug("sending serialized response");
             long ret = genericResponse.sendResponse(s);