From 250f28fe62244a58d0439f13d9d40e53c4c7e603 Mon Sep 17 00:00:00 2001
From: Olav Morken <olav.morken@uninett.no>
Date: Thu, 22 Jul 2010 08:24:57 +0000
Subject: [PATCH] SAML2/SOAPClient: Allow other message types than
 SAML2_ArtifactResolve.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@2425 44740490-163a-0410-bde0-09ae8108e29a
---
 lib/SAML2/SOAPClient.php | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/lib/SAML2/SOAPClient.php b/lib/SAML2/SOAPClient.php
index cbc34d57f..b2b047cfc 100644
--- a/lib/SAML2/SOAPClient.php
+++ b/lib/SAML2/SOAPClient.php
@@ -14,16 +14,16 @@ class SAML2_SOAPClient {
 	/**
 	 * This function sends the SOAP message to the service location and returns SOAP response
 	 *
-	 * @param $ar SAML2_ArtifactResolve object.
-	 * @return $soapresponse string
+	 * @param SAML2_Message $m  The request that should be sent.
+	 * @return SAML2_Message  The response we received.
 	 */
-	public function send(SAML2_ArtifactResolve $ar, SimpleSAML_Configuration $spMetadata) {
+	public function send(SAML2_Message $msg, SimpleSAML_Configuration $spMetadata) {
 
-		$issuer = $ar->getIssuer();
+		$issuer = $msg->getIssuer();
 
 		$options = array(
 			'uri' => $issuer,
-			'location' => $ar->getDestination(),
+			'location' => $msg->getDestination(),
 		);
 
 		// Determine if we are going to do a MutualSSL connection between the IdP and SP  - Shoaib
@@ -52,12 +52,12 @@ class SAML2_SOAPClient {
 		$x = new SoapClient(NULL, $options);
 
 		// Add soap-envelopes
-		$request = $ar->toSignedXML();
+		$request = $msg->toSignedXML();
 		$request = self::START_SOAP_ENVELOPE . $request->ownerDocument->saveXML($request) . self::END_SOAP_ENVELOPE;
 
 		$action = 'http://www.oasis-open.org/committees/security';
 		$version = '1.1';
-		$destination = $ar->getDestination();
+		$destination = $msg->getDestination();
 
 
 		/* Perform SOAP Request over HTTP */
-- 
GitLab