You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fx-dev@ws.apache.org by di...@apache.org on 2006/08/30 14:47:08 UTC

svn commit: r438476 - /webservices/wss4j/trunk/src/org/apache/ws/security/util/WSSecurityUtil.java

Author: dims
Date: Wed Aug 30 05:47:07 2006
New Revision: 438476

URL: http://svn.apache.org/viewvc?rev=438476&view=rev
Log:
Fix for WSS-53 - WSS4J does not correctly retrieve the Header element when the first node of the document is not the root element (a comment for ex)

Modified:
    webservices/wss4j/trunk/src/org/apache/ws/security/util/WSSecurityUtil.java

Modified: webservices/wss4j/trunk/src/org/apache/ws/security/util/WSSecurityUtil.java
URL: http://svn.apache.org/viewvc/webservices/wss4j/trunk/src/org/apache/ws/security/util/WSSecurityUtil.java?rev=438476&r1=438475&r2=438476&view=diff
==============================================================================
--- webservices/wss4j/trunk/src/org/apache/ws/security/util/WSSecurityUtil.java (original)
+++ webservices/wss4j/trunk/src/org/apache/ws/security/util/WSSecurityUtil.java Wed Aug 30 05:47:07 2006
@@ -80,7 +80,7 @@
     public static Element getSecurityHeader(Document doc, String actor,
             SOAPConstants sc) {
         Element soapHeaderElement = (Element) getDirectChild(doc
-                .getFirstChild(), sc.getHeaderQName().getLocalPart(), sc
+                .getDocumentElement(), sc.getHeaderQName().getLocalPart(), sc
                 .getEnvelopeURI());
 
         if (soapHeaderElement == null) { // no SOAP header at all



---------------------------------------------------------------------
To unsubscribe, e-mail: wss4j-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: wss4j-dev-help@ws.apache.org