diff --git a/lib/SAML2/SOAP.php b/lib/SAML2/SOAP.php index 00c46fa64c84cbc4eea322e37d49a34228100269..937590b5f31ced43c4f9f49cfd90a89c884b054d 100644 --- a/lib/SAML2/SOAP.php +++ b/lib/SAML2/SOAP.php @@ -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:Body>'; $xmlMessage = $message->toUnsignedXML(); + SimpleSAML_Utilities::debugMessage($xmlMessage, 'out'); $tempOutputFromIdp = $xmlMessage->ownerDocument->saveXML($xmlMessage); $outputFromIdp .= $tempOutputFromIdp; $outputFromIdp .= '</SOAP-ENV:Body>'; @@ -48,6 +49,7 @@ class SAML2_SOAP extends SAML2_Binding { $document = new DOMDocument(); $document->loadXML($postText); $xml = $document->firstChild; + SimpleSAML_Utilities::debugMessage($xml, 'in'); $results = SAML2_Utils::xpQuery($xml, '/soap-env:Envelope/soap-env:Body/*[1]'); return SAML2_Message::fromXML($results[0]); }