Update copyright.
[shibboleth/cpp-opensaml.git] / saml / saml2 / binding / impl / SAML2SOAPClient.cpp
index db6d1f5..673f5fc 100644 (file)
@@ -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<StatusResponseType*>(body->getXMLObjects().front());
+            StatusResponseType* response = dynamic_cast<StatusResponseType*>(body->getUnknownXMLObjects().front());
             if (response) {
                 
                 // Check InResponseTo.