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

SAML2_SOAP: Log messages received and sent.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@2757 44740490-163a-0410-bde0-09ae8108e29a
parent 088b5ea9
No related branches found
No related tags found
No related merge requests found
...@@ -21,6 +21,7 @@ class SAML2_SOAP extends SAML2_Binding { ...@@ -21,6 +21,7 @@ class SAML2_SOAP extends SAML2_Binding {
$outputFromIdp .= '<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">'; $outputFromIdp .= '<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">';
$outputFromIdp .= '<SOAP-ENV:Body>'; $outputFromIdp .= '<SOAP-ENV:Body>';
$xmlMessage = $message->toUnsignedXML(); $xmlMessage = $message->toUnsignedXML();
SimpleSAML_Utilities::debugMessage($xmlMessage, 'out');
$tempOutputFromIdp = $xmlMessage->ownerDocument->saveXML($xmlMessage); $tempOutputFromIdp = $xmlMessage->ownerDocument->saveXML($xmlMessage);
$outputFromIdp .= $tempOutputFromIdp; $outputFromIdp .= $tempOutputFromIdp;
$outputFromIdp .= '</SOAP-ENV:Body>'; $outputFromIdp .= '</SOAP-ENV:Body>';
...@@ -48,6 +49,7 @@ class SAML2_SOAP extends SAML2_Binding { ...@@ -48,6 +49,7 @@ class SAML2_SOAP extends SAML2_Binding {
$document = new DOMDocument(); $document = new DOMDocument();
$document->loadXML($postText); $document->loadXML($postText);
$xml = $document->firstChild; $xml = $document->firstChild;
SimpleSAML_Utilities::debugMessage($xml, 'in');
$results = SAML2_Utils::xpQuery($xml, '/soap-env:Envelope/soap-env:Body/*[1]'); $results = SAML2_Utils::xpQuery($xml, '/soap-env:Envelope/soap-env:Body/*[1]');
return SAML2_Message::fromXML($results[0]); return SAML2_Message::fromXML($results[0]);
} }
......
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