Author: sanka
Date: Wed Sep 27 23:35:45 2006
New Revision: 450719
URL: http://svn.apache.org/viewvc?view=rev&rev=450719
Log:
Fixed a minor error that caused the WSP policy URI not to be serialized.
Modified:
webservices/commons/trunk/modules/neethi/src/main/java/org/apache/neethi/Policy.java
Modified:
webservices/commons/trunk/modules/neethi/src/main/java/org/apache/neethi/Policy.java
URL:
http://svn.apache.org/viewvc/webservices/commons/trunk/modules/neethi/src/main/java/org/apache/neethi/Policy.java?view=diff&rev=450719&r1=450718&r2=450719
==============================================================================
---
webservices/commons/trunk/modules/neethi/src/main/java/org/apache/neethi/Policy.java
(original)
+++
webservices/commons/trunk/modules/neethi/src/main/java/org/apache/neethi/Policy.java
Wed Sep 27 23:35:45 2006
@@ -53,6 +53,7 @@
public void serialize(XMLStreamWriter writer) throws XMLStreamException {
String wspPrefix = writer.getPrefix(Constants.URI_POLICY_NS);
+
if (wspPrefix == null) {
wspPrefix = Constants.ATTR_WSP;
writer.setPrefix(wspPrefix, Constants.URI_POLICY_NS);
@@ -92,12 +93,17 @@
}
}
+ // writes xmlns:wsp=".."
+ writer.writeNamespace(wspPrefix, Constants.URI_POLICY_NS);
+
String prefiX;
for (Iterator iterator = prefix2ns.keySet().iterator();
iterator.hasNext();) {
prefiX = (String) iterator.next();
writer.writeNamespace(prefiX, (String) prefix2ns.get(prefiX));
}
+
+
PolicyComponent policyComponent;
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]