X-Git-Url: http://www.project-moonshot.org/gitweb/?p=shibboleth%2Fcpp-opensaml.git;a=blobdiff_plain;f=saml%2Fsaml2%2Fbinding%2Fimpl%2FSAML2SOAPDecoder.cpp;h=f2fb1a96dc06adf09ef229ebedcc38f59411c0dd;hp=2ac83b9856ec4c0f03155ed501425bb481c1d626;hb=6056cca67278d65c4343928e4ceaebd1d6f04920;hpb=0559a5cb760882cbe43382dfacfd0a028ade1069 diff --git a/saml/saml2/binding/impl/SAML2SOAPDecoder.cpp b/saml/saml2/binding/impl/SAML2SOAPDecoder.cpp index 2ac83b9..f2fb1a9 100644 --- a/saml/saml2/binding/impl/SAML2SOAPDecoder.cpp +++ b/saml/saml2/binding/impl/SAML2SOAPDecoder.cpp @@ -73,7 +73,7 @@ XMLObject* SAML2SOAPDecoder::decode( istringstream is(data); // Parse and bind the document into an XMLObject. - DOMDocument* doc = (m_validate ? XMLToolingConfig::getConfig().getValidatingParser() + DOMDocument* doc = (policy.getValidating() ? XMLToolingConfig::getConfig().getValidatingParser() : XMLToolingConfig::getConfig().getParser()).parse(is); XercesJanitor janitor(doc); auto_ptr xmlObject(XMLObjectBuilder::buildOneFromElement(doc->getDocumentElement(), true)); @@ -83,7 +83,7 @@ XMLObject* SAML2SOAPDecoder::decode( if (!env) throw BindingException("Decoded message was not a SOAP 1.1 Envelope."); - if (!m_validate) + if (!policy.getValidating()) SchemaValidators.validate(env); Body* body = env->getBody();