X-Git-Url: http://www.project-moonshot.org/gitweb/?p=shibboleth%2Fcpp-opensaml.git;a=blobdiff_plain;f=saml%2Fsaml1%2Fbinding%2Fimpl%2FSAML1SOAPClient.cpp;h=60f5d7b267988724fe4239ece1e7aff19b4c7ee8;hp=513eb7e63a713b7e1893df3a2a104e1934e222f2;hb=1462057b3b9ae7e165d34d988e30b14c213672ca;hpb=f1208cd2f514700244816377443c4951dc22c848 diff --git a/saml/saml1/binding/impl/SAML1SOAPClient.cpp b/saml/saml1/binding/impl/SAML1SOAPClient.cpp index 513eb7e..60f5d7b 100644 --- a/saml/saml1/binding/impl/SAML1SOAPClient.cpp +++ b/saml/saml1/binding/impl/SAML1SOAPClient.cpp @@ -92,7 +92,7 @@ Response* SAML1SOAPClient::receiveSAML() if (code && *code != StatusCode::SUCCESS && handleError(*status)) { BindingException ex("SAML Response contained an error."); if (m_soaper.getPolicy().getIssuerMetadata()) - annotateException(&ex, m_soaper.getPolicy().getIssuerMetadata()); // throws it + annotateException(&ex, m_soaper.getPolicy().getIssuerMetadata(), status); // throws it else ex.raise(); } @@ -114,11 +114,11 @@ Response* SAML1SOAPClient::receiveSAML() return nullptr; } -bool SAML1SOAPClient::handleError(const Status& status) +bool SAML1SOAPClient::handleError(const saml1p::Status& status) { const xmltooling::QName* code = status.getStatusCode() ? status.getStatusCode()->getValue() : nullptr; auto_ptr_char str((status.getStatusMessage() ? status.getStatusMessage()->getMessage() : nullptr)); - Category::getInstance(SAML_LOGCAT".SOAPClient").error( + Category::getInstance(SAML_LOGCAT ".SOAPClient").error( "SOAP client detected a SAML error: (%s) (%s)", (code ? code->toString().c_str() : "no code"), (str.get() ? str.get() : "no message")