Skip to content
Snippets Groups Projects
Commit 250f28fe authored by Olav Morken's avatar Olav Morken
Browse files

SAML2/SOAPClient: Allow other message types than SAML2_ArtifactResolve.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@2425 44740490-163a-0410-bde0-09ae8108e29a
parent 927cc947
No related branches found
No related tags found
No related merge requests found
......@@ -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 */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment