X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;f=saml%2Fsaml2%2Fbinding%2FSAML2SOAPClient.h;h=0fb8dfcd43c9a7b190a294d7846ce2160b004d72;hb=5bc033f4b58fc39842a68f33e5d9c247e521a73a;hp=a890f94636b866c6ab72c748c9ff7355d2d88f9e;hpb=72233004f5a0cb02140fb2fdbb31cdb15bde9459;p=shibboleth%2Fopensaml2.git diff --git a/saml/saml2/binding/SAML2SOAPClient.h b/saml/saml2/binding/SAML2SOAPClient.h index a890f94..0fb8dfc 100644 --- a/saml/saml2/binding/SAML2SOAPClient.h +++ b/saml/saml2/binding/SAML2SOAPClient.h @@ -35,18 +35,20 @@ namespace opensaml { /** * Specialized SOAPClient for SAML 2.0 SOAP binding. */ - class SAML_API SAML2SOAPClient : public opensaml::SOAPClient + class SAML_API SAML2SOAPClient { public: /** - * Creates a SOAP client instance with a particular SecurityPolicy. + * Constructor * - * @param policy reference to SecurityPolicy to apply - * @param validating controls schema validation + * @param soaper reference to SOAPClient object to use for call */ - SAML2SOAPClient(SecurityPolicy& policy, bool validating=false) : opensaml::SOAPClient(policy, validating) {} + SAML2SOAPClient(SOAPClient& soaper) : m_soaper(soaper), m_correlate(NULL) { + } - virtual ~SAML2SOAPClient() {} + virtual ~SAML2SOAPClient() { + XMLString::release(&m_correlate); + } /** * Specialized method for sending SAML 2.0 requests. The SOAP layer will be @@ -78,6 +80,12 @@ namespace opensaml { * @return true iff the error should be treated as a fatal error */ virtual bool handleError(const Status& status); + + /** SOAP client object */ + SOAPClient& m_soaper; + + private: + XMLCh* m_correlate; }; };