Default the binding template property.
authorScott Cantor <cantor.2@osu.edu>
Fri, 30 Jul 2010 01:13:35 +0000 (01:13 +0000)
committerScott Cantor <cantor.2@osu.edu>
Fri, 30 Jul 2010 01:13:35 +0000 (01:13 +0000)
saml/saml1/binding/impl/SAML1POSTEncoder.cpp
saml/saml2/binding/impl/SAML2ArtifactEncoder.cpp
saml/saml2/binding/impl/SAML2POSTEncoder.cpp

index 2803a85..d649db7 100644 (file)
@@ -81,7 +81,7 @@ namespace opensaml {
 static const XMLCh _template[] = UNICODE_LITERAL_8(t,e,m,p,l,a,t,e);
 
 SAML1POSTEncoder::SAML1POSTEncoder(const DOMElement* e, const XMLCh* ns)
-    : m_template(XMLHelper::getAttrString(e, nullptr, _template, ns))
+    : m_template(XMLHelper::getAttrString(e, "bindingTemplate.html", _template, ns))
 {
     if (m_template.empty())
         throw XMLToolingException("SAML1POSTEncoder requires template XML attribute.");
index d9d91d3..a6b7454 100644 (file)
@@ -85,7 +85,7 @@ namespace opensaml {
 SAML2ArtifactEncoder::SAML2ArtifactEncoder(const DOMElement* e, const XMLCh* ns)
 {
     if (XMLHelper::getAttrBool(e, false, postArtifact, ns)) {
-        m_template = XMLHelper::getAttrString(e, nullptr, _template, ns);
+        m_template = XMLHelper::getAttrString(e, "bindingTemplate.html", _template, ns);
         if (!m_template.empty())
             XMLToolingConfig::getConfig().getPathResolver()->resolve(m_template, PathResolver::XMLTOOLING_CFG_FILE);
     }
index ec32ac2..fde133c 100644 (file)
@@ -88,7 +88,7 @@ namespace opensaml {
 static const XMLCh _template[] = UNICODE_LITERAL_8(t,e,m,p,l,a,t,e);
 
 SAML2POSTEncoder::SAML2POSTEncoder(const DOMElement* e, const XMLCh* ns, bool simple)
-    : m_template(XMLHelper::getAttrString(e, nullptr, _template, ns)), m_simple(simple)
+    : m_template(XMLHelper::getAttrString(e, "bindingTemplate.html", _template, ns)), m_simple(simple)
 {
     if (m_template.empty())
         throw XMLToolingException("SAML2POSTEncoder requires template XML attribute.");