X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;f=saml%2Fsaml2%2Fbinding%2Fimpl%2FSAML2SOAPClient.cpp;h=673f5fca42587eea80b1187abd571a934ec8cdf5;hb=932cfaae2176c2eba1a9938dc420591a9551a7f3;hp=db6d1f52f999d5fa46fae9b75e8260c3b0f7d5b1;hpb=c4c804e4ab0ee8ff178cef1130cf07beed3b4234;p=shibboleth%2Fcpp-opensaml.git diff --git a/saml/saml2/binding/impl/SAML2SOAPClient.cpp b/saml/saml2/binding/impl/SAML2SOAPClient.cpp index db6d1f5..673f5fc 100644 --- a/saml/saml2/binding/impl/SAML2SOAPClient.cpp +++ b/saml/saml2/binding/impl/SAML2SOAPClient.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2001-2006 Internet2 + * Copyright 2001-2007 Internet2 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -42,7 +42,7 @@ void SAML2SOAPClient::sendSAML(RequestAbstractType* request, const RoleDescripto Envelope* env = EnvelopeBuilder::buildEnvelope(); Body* body = BodyBuilder::buildBody(); env->setBody(body); - body->getXMLObjects().push_back(request); + body->getUnknownXMLObjects().push_back(request); try { send(env, peer, endpoint); m_correlate = XMLString::replicate(request->getID()); @@ -64,7 +64,7 @@ StatusResponseType* SAML2SOAPClient::receiveSAML() Body* body = env->getBody(); if (body && body->hasChildren()) { // Check for SAML Response. - StatusResponseType* response = dynamic_cast(body->getXMLObjects().front()); + StatusResponseType* response = dynamic_cast(body->getUnknownXMLObjects().front()); if (response) { // Check InResponseTo.