diff options
author | Olav Morken <olav.morken@uninett.no> | 2010-07-22 08:24:57 +0000 |
---|---|---|
committer | Olav Morken <olav.morken@uninett.no> | 2010-07-22 08:24:57 +0000 |
commit | 250f28fe62244a58d0439f13d9d40e53c4c7e603 (patch) | |
tree | fac4944f0abb95dd55ff5bef1124355551c58a1b /lib/SAML2 | |
parent | 927cc9478517c94ef6ac4d1c2d4ae735c873a8b4 (diff) | |
download | simplesamlphp-250f28fe62244a58d0439f13d9d40e53c4c7e603.zip simplesamlphp-250f28fe62244a58d0439f13d9d40e53c4c7e603.tar.gz simplesamlphp-250f28fe62244a58d0439f13d9d40e53c4c7e603.tar.bz2 |
SAML2/SOAPClient: Allow other message types than SAML2_ArtifactResolve.
git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@2425 44740490-163a-0410-bde0-09ae8108e29a
Diffstat (limited to 'lib/SAML2')
-rw-r--r-- | lib/SAML2/SOAPClient.php | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/SAML2/SOAPClient.php b/lib/SAML2/SOAPClient.php index cbc34d5..b2b047c 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 */ |