Fix version in HTTP header, skip correlation check when no value to check.
authorScott Cantor <cantor.2@osu.edu>
Thu, 15 Feb 2007 03:55:34 +0000 (03:55 +0000)
committerScott Cantor <cantor.2@osu.edu>
Thu, 15 Feb 2007 03:55:34 +0000 (03:55 +0000)
saml/binding/impl/SOAPClient.cpp
saml/saml1/binding/impl/SAML1SOAPClient.cpp
saml/saml2/binding/impl/SAML2SOAPClient.cpp

index 5d15bca..a68d262 100644 (file)
@@ -61,7 +61,7 @@ void SOAPClient::prepareTransport(const xmltooling::SOAPTransport& transport)
     if (http) {
         http->setRequestHeader("SOAPAction", "http://www.oasis-open.org/committees/security");
         http->setRequestHeader("Xerces-C", XERCES_FULLVERSIONDOT);
-        http->setRequestHeader("XML-Security-C", XSEC_VERSION);
+        http->setRequestHeader("XML-Security-C", XSEC_FULLVERSIONDOT);
         http->setRequestHeader("OpenSAML-C", OPENSAML_FULLVERSIONDOT);
     }
     
index c684596..97114a0 100644 (file)
@@ -58,7 +58,7 @@ Response* SAML1SOAPClient::receiveSAML()
             if (response) {
                 
                 // Check InResponseTo.
-                if (m_correlate && !XMLString::equals(m_correlate, response->getInResponseTo()))
+                if (m_correlate && response->getInResponseTo() && !XMLString::equals(m_correlate, response->getInResponseTo()))
                     throw BindingException("InResponseTo attribute did not correlate with the Request ID.");
                 
                 // Check Status.
index 4a1fc04..7ed6c1b 100644 (file)
@@ -58,7 +58,7 @@ StatusResponseType* SAML2SOAPClient::receiveSAML()
             if (response) {
                 
                 // Check InResponseTo.
-                if (m_correlate && !XMLString::equals(m_correlate, response->getInResponseTo()))
+                if (m_correlate && response->getInResponseTo() && !XMLString::equals(m_correlate, response->getInResponseTo()))
                     throw BindingException("InResponseTo attribute did not correlate with the Request ID.");
                 
                 // Check Status.