RE: problem enveloping a soap body

2008-10-27 Thread Richard Sand
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

Re: problem enveloping a soap body

2008-10-16 Thread Sean Mullan
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();

RE: problem enveloping a soap body

2008-10-11 Thread Richard Sand
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

Re: problem enveloping a soap body

2008-10-10 Thread Sean Mullan
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

RE: problem enveloping a soap body

2008-10-09 Thread Richard Sand
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

Re: problem enveloping a soap body

2008-10-08 Thread Sean Mullan
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

RE: problem enveloping a soap body

2008-10-08 Thread Richard Sand
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

Re: problem enveloping a soap body

2008-10-08 Thread Sean Mullan
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

problem enveloping a soap body

2008-10-07 Thread Richard Sand
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