diff --git a/lib/SAML2/SOAP.php b/lib/SAML2/SOAP.php
index 937590b5f31ced43c4f9f49cfd90a89c884b054d..e55646c871a36c1ca5ce6ea20940504c1a278c6f 100644
--- a/lib/SAML2/SOAP.php
+++ b/lib/SAML2/SOAP.php
@@ -20,7 +20,7 @@ class SAML2_SOAP extends SAML2_Binding {
 		$outputFromIdp = '<?xml version="1.0" encoding="UTF-8"?>';
 		$outputFromIdp .= '<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">';
 		$outputFromIdp .= '<SOAP-ENV:Body>';
-		$xmlMessage = $message->toUnsignedXML();
+		$xmlMessage = $message->toSignedXML();
 		SimpleSAML_Utilities::debugMessage($xmlMessage, 'out');
 		$tempOutputFromIdp = $xmlMessage->ownerDocument->saveXML($xmlMessage);
 		$outputFromIdp .= $tempOutputFromIdp;