From 9f77da4ed29bad2c04cc01ccb3103df26c50ac96 Mon Sep 17 00:00:00 2001
From: Olav Morken <olav.morken@uninett.no>
Date: Wed, 12 Aug 2009 08:31:16 +0000
Subject: [PATCH] AttributeQuery example: Use standard debug method.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@1652 44740490-163a-0410-bde0-09ae8108e29a
---
 www/example-simple/attributequery.php | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/www/example-simple/attributequery.php b/www/example-simple/attributequery.php
index 5e5315894..a81ab6a8b 100644
--- a/www/example-simple/attributequery.php
+++ b/www/example-simple/attributequery.php
@@ -20,12 +20,8 @@ function sendQuery($dataId, $url, $nameId) {
 	$query->setIssuer($GLOBALS['spEntityId']);
 	$query->setNameId($nameId);
 
-	$xml = $query->toUnsignedXML();
-	SimpleSAML_Utilities::formatDOMElement($xml);
-	$xml = $xml->ownerDocument->saveXML($xml);
-	error_log($xml);
-
 	$binding = new SAML2_HTTPRedirect();
+	$binding->setDestination(sspmod_saml2_Message::getDebugDestination());
 	$binding->send($query);
 }
 
-- 
GitLab