throw BindingException("SAML 1.x Artifact Encoder requires an ArtifactGenerator instance.");
if (log.isDebugEnabled())
- log.debugStream() << "marshalled assertion: " << *xmlObject << logging::eol;
+ log.debugStream() << "marshalled assertion:" << logging::eol << *xmlObject << logging::eol;
auto_ptr_char recipientID(recipient ? recipient->getEntityID() : NULL);
log.debug("obtaining new artifact for relying party (%s)", recipientID.get() ? recipientID.get() : "unknown");
TemplateEngine::TemplateParameters pmap;
string& xmlbuf = pmap.m_map["SAMLResponse"];
XMLHelper::serialize(rootElement, xmlbuf);
- log.debug("marshalled response: %s", xmlbuf.c_str());
+ log.debug("marshalled response:\n%s", xmlbuf.c_str());
// Replace with base-64 encoded version.
unsigned int len=0;
const char* data = genericRequest.getRequestBody();
if (!data)
throw BindingException("SOAP message had an empty request body.");
+ log.debug("received message:\n%s", data);
istringstream is(data);
// Parse and bind the document into an XMLObject.
s << *rootElement;
if (log.isDebugEnabled())
- log.debug("marshalled envelope: %s", s.str().c_str());
+ log.debug("marshalled envelope:\n%s", s.str().c_str());
log.debug("sending serialized envelope");
bool error = (!response && env->getBody() && env->getBody()->hasChildren() &&
s << *rootElement;
if (log.isDebugEnabled())
- log.debug("marshalled envelope: %s", s.str().c_str());
+ log.debug("marshalled envelope:\n%s", s.str().c_str());
log.debug("sending serialized envelope");
long ret = genericResponse.sendError(s);
}
if (log.isDebugEnabled())
- log.debugStream() << "marshalled message: " << *xmlObject << logging::eol;
+ log.debugStream() << "marshalled message:" << logging::eol << *xmlObject << logging::eol;
// Store the message. Last step in storage will be to delete the XML.
log.debug("storing artifact and content in map");
const char* data = genericRequest.getRequestBody();
if (!data)
throw BindingException("PAOS message had an empty request body.");
+ log.debug("received message:\n%s", data);
istringstream is(data);
// Parse and bind the document into an XMLObject.
s << *rootElement;
if (log.isDebugEnabled())
- log.debug("marshalled envelope: %s", s.str().c_str());
+ log.debug("marshalled envelope:\n%s", s.str().c_str());
log.debug("sending serialized envelope");
long ret = genericResponse.sendResponse(s);
TemplateEngine::TemplateParameters pmap;
string& msg = pmap.m_map[(request ? "SAMLRequest" : "SAMLResponse")];
XMLHelper::serialize(rootElement, msg);
- log.debug("marshalled message: %s", msg.c_str());
+ log.debug("marshalled message:\n%s", msg.c_str());
// SimpleSign.
if (credential && m_simple) {
DOMElement* rootElement = xmlObject->marshall();
string xmlbuf;
XMLHelper::serialize(rootElement, xmlbuf);
- log.debug("marshalled message: %s", xmlbuf.c_str());
+ log.debug("marshalled message:\n%s", xmlbuf.c_str());
unsigned int len;
char* deflated = deflate(const_cast<char*>(xmlbuf.c_str()), xmlbuf.length(), &len);
const char* data = genericRequest.getRequestBody();
if (!data)
throw BindingException("SOAP message had an empty request body.");
+ log.debug("received message:\n%s", data);
istringstream is(data);
// Parse and bind the document into an XMLObject.
s << *rootElement;
if (log.isDebugEnabled())
- log.debug("marshalled envelope: %s", s.str().c_str());
+ log.debug("marshalled envelope:\n%s", s.str().c_str());
log.debug("sending serialized envelope");
bool error = (!msg && env->getBody() && env->getBody()->hasChildren() &&
s << *rootElement;
if (log.isDebugEnabled())
- log.debug("marshalled envelope: %s", s.str().c_str());
+ log.debug("marshalled envelope:\n%s", s.str().c_str());
log.debug("sending serialized envelope");
long ret = genericResponse.sendError(s);