PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 16, 2008 4:33 PM
To: security-dev@xml.apache.org
Subject: Re: problem enveloping a soap body
I finally found some time to look at this and fixed your program. The problem
is
that you are also trying to insert the document inside a
ng xmlToString(Document doc) throws IOException {
StringWriter sw = new StringWriter();
XMLSerializer ser = new XMLSerializer(sw, new
OutputFormat(doc));
ser.serialize(doc.getDocumentElement());
String XMLStr = sw.toString();
riter sw = new StringWriter();
XMLSerializer ser = new XMLSerializer(sw, new
OutputFormat(doc));
ser.serialize(doc.getDocumentElement());
String XMLStr = sw.toString();
return XMLStr;
}
}
Best regards,
Richard A. Sand
ttg.com/us
-Original Message- From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Sent: Wednesday, October 08, 2008 5:08 PM To:
security-dev@xml.apache.org Subject: Re: problem enveloping a soap body
I believe it is because of this line:
// Create a DOMSignContext, specifying the PrivateK
om/us
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 08, 2008 5:08 PM
To: security-dev@xml.apache.org
Subject: Re: problem enveloping a soap body
I believe it is because of this line:
// Create a DOMSignContext, specifying the PrivateKey an
httg.com/us
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 08, 2008 9:31 AM
To: security-dev@xml.apache.org
Subject: Re: problem enveloping a soap body
You are trying to import a Document node which is illegal according to
Document.importNode. T
ailto:[EMAIL PROTECTED]
Sent: Wednesday, October 08, 2008 9:31 AM
To: security-dev@xml.apache.org
Subject: Re: problem enveloping a soap body
You are trying to import a Document node which is illegal according to
Document.importNode. Try changing the following line:
XMLStructure co
You are trying to import a Document node which is illegal according to
Document.importNode. Try changing the following line:
XMLStructure content = new DOMStructure(doc);
to:
XMLStructure content = new
DOMStructure(doc.getDocumentElement());
--Sean
Richard S
Hi all,
I'm sure this has been encountered before... I'm trying to use the XML security
API to sign a SOAP request. For various reasons I'm not using WS-Security, only
XML security.
I've gone through the sample code provided with the API and I can see that the
enveloping sample does not load t