Return-Path: Delivered-To: apmail-ws-wss4j-dev-archive@www.apache.org Received: (qmail 71251 invoked from network); 5 Jun 2009 10:17:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 5 Jun 2009 10:17:29 -0000 Received: (qmail 29340 invoked by uid 500); 5 Jun 2009 10:17:41 -0000 Delivered-To: apmail-ws-wss4j-dev-archive@ws.apache.org Received: (qmail 29247 invoked by uid 500); 5 Jun 2009 10:17:41 -0000 Mailing-List: contact wss4j-dev-help@ws.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list wss4j-dev@ws.apache.org Received: (qmail 29238 invoked by uid 500); 5 Jun 2009 10:17:41 -0000 Delivered-To: apmail-ws-wss4j-cvs@ws.apache.org Received: (qmail 29235 invoked by uid 99); 5 Jun 2009 10:17:41 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Jun 2009 10:17:41 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Jun 2009 10:17:38 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 013142388871; Fri, 5 Jun 2009 10:17:17 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r781973 - /webservices/wss4j/trunk/src/org/apache/ws/security/message/WSSecEncrypt.java Date: Fri, 05 Jun 2009 10:17:16 -0000 To: wss4j-cvs@ws.apache.org From: coheigea@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20090605101717.013142388871@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: coheigea Date: Fri Jun 5 10:17:16 2009 New Revision: 781973 URL: http://svn.apache.org/viewvc?rev=781973&view=rev Log: Changed the code for wsse11:EncryptedHeader to make it work with other SAAJ implementations Modified: webservices/wss4j/trunk/src/org/apache/ws/security/message/WSSecEncrypt.java Modified: webservices/wss4j/trunk/src/org/apache/ws/security/message/WSSecEncrypt.java URL: http://svn.apache.org/viewvc/webservices/wss4j/trunk/src/org/apache/ws/security/message/WSSecEncrypt.java?rev=781973&r1=781972&r2=781973&view=diff ============================================================================== --- webservices/wss4j/trunk/src/org/apache/ws/security/message/WSSecEncrypt.java (original) +++ webservices/wss4j/trunk/src/org/apache/ws/security/message/WSSecEncrypt.java Fri Jun 5 10:17:16 2009 @@ -474,7 +474,9 @@ // Header node as well // elementToEncrypt.getParentNode().appendChild(elem); - elem.appendChild(elementToEncrypt); + elementToEncrypt = + (Element)elementToEncrypt.getParentNode().removeChild(elementToEncrypt); + elementToEncrypt = (Element)elem.appendChild(elementToEncrypt); NamedNodeMap map = elementToEncrypt.getAttributes(); for (int i = 0 ; i < map.getLength() ; i++) { --------------------------------------------------------------------- To unsubscribe, e-mail: wss4j-dev-unsubscribe@ws.apache.org For additional commands, e-mail: wss4j-dev-help@ws.apache.org