Author: lresende
Date: Thu Jan 29 00:57:55 2009
New Revision: 738686

URL: http://svn.apache.org/viewvc?rev=738686&view=rev
Log:
Fixing test failures by ignoring tuscany NS when processing extended attributes

Modified:
    
tuscany/branches/sca-java-1.x/modules/binding-ws-xml/src/main/java/org/apache/tuscany/sca/binding/ws/xml/WebServiceBindingProcessor.java

Modified: 
tuscany/branches/sca-java-1.x/modules/binding-ws-xml/src/main/java/org/apache/tuscany/sca/binding/ws/xml/WebServiceBindingProcessor.java
URL: 
http://svn.apache.org/viewvc/tuscany/branches/sca-java-1.x/modules/binding-ws-xml/src/main/java/org/apache/tuscany/sca/binding/ws/xml/WebServiceBindingProcessor.java?rev=738686&r1=738685&r2=738686&view=diff
==============================================================================
--- 
tuscany/branches/sca-java-1.x/modules/binding-ws-xml/src/main/java/org/apache/tuscany/sca/binding/ws/xml/WebServiceBindingProcessor.java
 (original)
+++ 
tuscany/branches/sca-java-1.x/modules/binding-ws-xml/src/main/java/org/apache/tuscany/sca/binding/ws/xml/WebServiceBindingProcessor.java
 Thu Jan 29 00:57:55 2009
@@ -235,11 +235,11 @@
         wsBinding.setLocation(reader.getAttributeValue(WSDLI_NS, 
WSDL_LOCATION));
         
         // Handle extended attributes
-        QName elementName = reader.getName();
         for (int a = 0; a < reader.getAttributeCount(); a++) {
             QName attributeName = reader.getAttributeName(a);
             if( attributeName.getNamespaceURI() != null && 
attributeName.getNamespaceURI() != WSDLI_NS && 
attributeName.getNamespaceURI().length() > 0) {
-                if( ! 
elementName.getNamespaceURI().equals(attributeName.getNamespaceURI()) ) {
+                if( (! 
Constants.SCA10_NS.equals(attributeName.getNamespaceURI()) && 
+                    (! 
Constants.SCA10_TUSCANY_NS.equals(attributeName.getNamespaceURI()) ))) {
                     Object attributeValue = 
extensionAttributeProcessor.read(attributeName, reader);
                     Extension attributeExtension;
                     if (attributeValue instanceof Extension) {


Reply via email to