X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;f=saml%2Fsaml2%2Fbinding%2Fimpl%2FSAML2SOAPDecoder.cpp;h=8879499d89c0367b60b939a0d971c19bda7f897b;hb=a0323c50525a6ff43795da2dc786e5aeaf726d41;hp=2d9d22f370e234f3190b0d27b10971991cda9053;hpb=98b9be4dacac1d9a8729906473e35fc904676d12;p=shibboleth%2Fopensaml2.git diff --git a/saml/saml2/binding/impl/SAML2SOAPDecoder.cpp b/saml/saml2/binding/impl/SAML2SOAPDecoder.cpp index 2d9d22f..8879499 100644 --- a/saml/saml2/binding/impl/SAML2SOAPDecoder.cpp +++ b/saml/saml2/binding/impl/SAML2SOAPDecoder.cpp @@ -25,7 +25,7 @@ #include "binding/MessageDecoder.h" #include "saml2/core/Protocols.h" -#include +#include #include #include #include @@ -33,8 +33,8 @@ using namespace opensaml::saml2p; using namespace opensaml; using namespace soap11; +using namespace xmltooling::logging; using namespace xmltooling; -using namespace log4cpp; using namespace std; namespace opensaml { @@ -42,7 +42,7 @@ namespace opensaml { class SAML_DLLLOCAL SAML2SOAPDecoder : public MessageDecoder { public: - SAML2SOAPDecoder(const DOMElement* e); + SAML2SOAPDecoder() {} virtual ~SAML2SOAPDecoder() {} bool isUserAgentPresent() const { @@ -56,15 +56,13 @@ namespace opensaml { ) const; }; - MessageDecoder* SAML_DLLLOCAL SAML2SOAPDecoderFactory(const DOMElement* const & e) + MessageDecoder* SAML_DLLLOCAL SAML2SOAPDecoderFactory(const pair& p) { - return new SAML2SOAPDecoder(e); + return new SAML2SOAPDecoder(); } }; }; -SAML2SOAPDecoder::SAML2SOAPDecoder(const DOMElement* e) {} - XMLObject* SAML2SOAPDecoder::decode( string& relayState, const GenericRequest& genericRequest, @@ -107,8 +105,9 @@ XMLObject* SAML2SOAPDecoder::decode( RequestAbstractType* request = dynamic_cast(body->getUnknownXMLObjects().front()); if (request) { // Run through the policy at two layers. - policy.evaluate(*env, &genericRequest); - policy.evaluate(*request, &genericRequest); + policy.evaluate(*env, &genericRequest, samlconstants::SAML20P_NS); + policy.reset(true); + policy.evaluate(*request, &genericRequest, samlconstants::SAML20P_NS); xmlObject.release(); body->detach(); // frees Envelope request->detach(); // frees Body