You are viewing a plain text version of this content. The canonical link for it is here.
Posted to muse-commits@ws.apache.org by ae...@apache.org on 2006/08/22 08:06:04 UTC
svn commit: r433537 -
/webservices/muse/trunk/modules/muse-core/src/org/apache/muse/ws/wsdl/WsdlUtils.java
Author: aeberbac
Date: Mon Aug 21 23:06:04 2006
New Revision: 433537
URL: http://svn.apache.org/viewvc?rev=433537&view=rev
Log:
Added a check so that when we are copying over namespace prefixes onto schemas, we make sure not to create multiple prefix bindings that have the same prefix.
Modified:
webservices/muse/trunk/modules/muse-core/src/org/apache/muse/ws/wsdl/WsdlUtils.java
Modified: webservices/muse/trunk/modules/muse-core/src/org/apache/muse/ws/wsdl/WsdlUtils.java
URL: http://svn.apache.org/viewvc/webservices/muse/trunk/modules/muse-core/src/org/apache/muse/ws/wsdl/WsdlUtils.java?rev=433537&r1=433536&r2=433537&view=diff
==============================================================================
--- webservices/muse/trunk/modules/muse-core/src/org/apache/muse/ws/wsdl/WsdlUtils.java (original)
+++ webservices/muse/trunk/modules/muse-core/src/org/apache/muse/ws/wsdl/WsdlUtils.java Mon Aug 21 23:06:04 2006
@@ -933,7 +933,15 @@
NamedNodeMap attributes = nextSchema.getAttributes();
for(int i=0; i < attributes.getLength(); i++) {
Node attribute = attributes.item(i);
- finalSchema.setAttribute(attribute.getNodeName(), attribute.getNodeValue());
+
+ if(!finalSchema.hasAttribute(attribute.getNodeName())) {
+ String nodePrefix = finalSchema.getPrefix();
+ String nodeValue = attribute.getLocalName();
+
+ if(nodePrefix == null || !nodePrefix.equals(nodeValue)) {
+ finalSchema.setAttribute(attribute.getNodeName(), attribute.getNodeValue());
+ }
+ }
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: muse-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: muse-commits-help@ws.apache.org