aboutsummaryrefslogtreecommitdiff
path: root/id.server/doc
diff options
context:
space:
mode:
authorpeter.danner <peter.danner@d688527b-c9ab-4aba-bd8d-4036d912da1d>2007-07-19 14:12:23 +0000
committerpeter.danner <peter.danner@d688527b-c9ab-4aba-bd8d-4036d912da1d>2007-07-19 14:12:23 +0000
commit6b7df32316881105833eaff57cb9353de8761703 (patch)
treeb3e785b2bb66faceeb2c4339e70c534fbde111ba /id.server/doc
parent349b989e2b5086183fc6389b7f7c96a63afd1f4a (diff)
downloadmoa-id-spss-6b7df32316881105833eaff57cb9353de8761703.tar.gz
moa-id-spss-6b7df32316881105833eaff57cb9353de8761703.tar.bz2
moa-id-spss-6b7df32316881105833eaff57cb9353de8761703.zip
Fix für Parserproblem: der XML Parser erwartet, wenn ein String uebergeben wird, einen URN. Im Beispiel wird aber das XML Dokument anstatt der URN uebergeben. Das fuehrt zu einer java.net.MalformedURLException: no protocol: Exception.
git-svn-id: https://joinup.ec.europa.eu/svn/moa-idspss/trunk@851 d688527b-c9ab-4aba-bd8d-4036d912da1d
Diffstat (limited to 'id.server/doc')
-rw-r--r--id.server/doc/moa_id/examples/LoginServletExample.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/id.server/doc/moa_id/examples/LoginServletExample.txt b/id.server/doc/moa_id/examples/LoginServletExample.txt
index e085e4126..587ef5e97 100644
--- a/id.server/doc/moa_id/examples/LoginServletExample.txt
+++ b/id.server/doc/moa_id/examples/LoginServletExample.txt
@@ -73,7 +73,7 @@ public class LoginServletExample extends HttpServlet {
"<?xml version=\"1.0\" encoding=\"UTF-8\"?><samlp:Request IssueInstant=\"2003-01-01T00:00:00+02:00\" MajorVersion=\"1\" MinorVersion=\"0\" RequestID=\"12345678901234567890\" xmlns:samlp=\"urn:oasis:names:tc:SAML:1.0:protocol\"><samlp:AssertionArtifact>"
+ samlArtifact
+ "</samlp:AssertionArtifact></samlp:Request>";
- Document root_request = builder.parse(samlRequest);
+ Document root_request = builder.parse(new ByteArrayInputStream(samlRequest.getBytes()));
// Neues SOAPBodyElement anlegen und mit dem DOM-Baum füllen
SOAPBodyElement body = new SOAPBodyElement(root_request.getDocumentElement());