Author: darran.lofthouse(a)jboss.com
Date: 2010-06-25 10:12:09 -0400 (Fri, 25 Jun 2010)
New Revision: 12521
Modified:
stack/native/branches/jbossws-native-2.0.1.SP2_CP08_JBPAPP-4502/src/main/java/org/jboss/ws/extensions/security/element/UsernameToken.java
Log:
[JBPAPP-4502] Correct namespace for 'Created' element within
'UsernameToken'.
Modified:
stack/native/branches/jbossws-native-2.0.1.SP2_CP08_JBPAPP-4502/src/main/java/org/jboss/ws/extensions/security/element/UsernameToken.java
===================================================================
---
stack/native/branches/jbossws-native-2.0.1.SP2_CP08_JBPAPP-4502/src/main/java/org/jboss/ws/extensions/security/element/UsernameToken.java 2010-06-25
12:26:25 UTC (rev 12520)
+++
stack/native/branches/jbossws-native-2.0.1.SP2_CP08_JBPAPP-4502/src/main/java/org/jboss/ws/extensions/security/element/UsernameToken.java 2010-06-25
14:12:09 UTC (rev 12521)
@@ -98,7 +98,7 @@
this.nonce = XMLUtils.getFullTextChildrenFromElement(elem);
}
- Iterator<Element> itCreated = DOMUtils.getChildElements(element, new
QName(Constants.WSSE_NS, "Created"));
+ Iterator<Element> itCreated = DOMUtils.getChildElements(element, new
QName(Constants.WSU_NS, "Created"));
if (itCreated != null && itCreated.hasNext())
{
this.created = XMLUtils.getFullTextChildrenFromElement(itCreated.next());
@@ -165,7 +165,7 @@
}
if (created != null)
{
- child = doc.createElementNS(Constants.WSSE_NS, Constants.WSSE_PREFIX +
":" + "Created");
+ child = doc.createElementNS(Constants.WSU_NS, Constants.WSU_PREFIX +
":" + "Created");
child.appendChild(doc.createTextNode(created));
element.appendChild(child);
}
Show replies by date