cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bimargul...@apache.org
Subject svn commit: r1023412 - /cxf/trunk/rt/bindings/http/src/main/java/org/apache/cxf/binding/http/IriDecoderHelper.java
Date Sun, 17 Oct 2010 02:29:09 GMT
Author: bimargulies
Date: Sun Oct 17 02:29:09 2010
New Revision: 1023412

URL: http://svn.apache.org/viewvc?rev=1023412&view=rev
Log:
Fix http bnding tests

Modified:
    cxf/trunk/rt/bindings/http/src/main/java/org/apache/cxf/binding/http/IriDecoderHelper.java

Modified: cxf/trunk/rt/bindings/http/src/main/java/org/apache/cxf/binding/http/IriDecoderHelper.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/bindings/http/src/main/java/org/apache/cxf/binding/http/IriDecoderHelper.java?rev=1023412&r1=1023411&r2=1023412&view=diff
==============================================================================
--- cxf/trunk/rt/bindings/http/src/main/java/org/apache/cxf/binding/http/IriDecoderHelper.java
(original)
+++ cxf/trunk/rt/bindings/http/src/main/java/org/apache/cxf/binding/http/IriDecoderHelper.java
Sun Oct 17 02:29:09 2010
@@ -259,18 +259,18 @@ public final class IriDecoderHelper {
                 }
             }
             Element ec = null;
-            QName qn = elChild.getQName();
+            QName qn = elChild.getWireName();
             if (StringUtils.isEmpty(qn.getNamespaceURI()) && unQualified) {
                 ec = doc.createElement(elChild.getQName().getLocalPart());
             } else {
 
-                if (!elChild.getQName().getNamespaceURI().equals(qname.getNamespaceURI()))
{
-                    ec = doc.createElementNS(elChild.getQName().getNamespaceURI(),
-                                             elChild.getQName().getLocalPart());
-                    ec.setAttribute(XMLConstants.XMLNS_ATTRIBUTE, elChild.getQName().getNamespaceURI());
+                if (!qn.getNamespaceURI().equals(qname.getNamespaceURI())) {
+                    ec = doc.createElementNS(qn.getNamespaceURI(),
+                                             qn.getLocalPart());
+                    ec.setAttribute(XMLConstants.XMLNS_ATTRIBUTE, qn.getNamespaceURI());
                 } else {
-                    ec = doc.createElementNS(elChild.getQName().getNamespaceURI(),
-                                             "ns1:" + elChild.getQName().getLocalPart());
+                    ec = doc.createElementNS(qn.getNamespaceURI(),
+                                             "ns1:" + qn.getLocalPart());
                 }
             }
 



Mime
View raw message