axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ami...@apache.org
Subject svn commit: r831203 - /webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/utils/writer/MTOMAwareOMBuilder.java
Date Fri, 30 Oct 2009 05:17:15 GMT
Author: amilas
Date: Fri Oct 30 05:17:14 2009
New Revision: 831203

URL: http://svn.apache.org/viewvc?rev=831203&view=rev
Log:
remove this check since this could cause problems if a namespace use in two different scopes
with different prefixes.
here we assume ADB writes a vaild stream

Modified:
    webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/utils/writer/MTOMAwareOMBuilder.java

Modified: webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/utils/writer/MTOMAwareOMBuilder.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/utils/writer/MTOMAwareOMBuilder.java?rev=831203&r1=831202&r2=831203&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/utils/writer/MTOMAwareOMBuilder.java
(original)
+++ webservices/axis2/trunk/java/modules/adb/src/org/apache/axis2/databinding/utils/writer/MTOMAwareOMBuilder.java
Fri Oct 30 05:17:14 2009
@@ -81,10 +81,7 @@
             } else {
                 if (prefix == null) {
                     prefix = "ns" + ++prefixNum;
-                } else if (this.omStreamNamespaceContext.getNamespaceURI(prefix) != null)
{
-                    throw new XMLStreamException("the prefix ==> " + prefix +
-                            " Already exists for namespace ==> " + namespace);
-                }
+                } 
                 omNamespace = omFactory.createOMNamespace(namespace, prefix);
                 this.omStreamNamespaceContext.registerNamespace(namespace, prefix);
                 namespaceOMNamesapceMap.put(namespace, omNamespace);



Mime
View raw message