servicemix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ff...@apache.org
Subject svn commit: r792781 - /servicemix/smx3/branches/servicemix-3.2/deployables/bindingcomponents/servicemix-cxf-bc/src/main/java/org/apache/servicemix/cxfbc/interceptors/JbiInWsdl1Interceptor.java
Date Fri, 10 Jul 2009 02:10:14 GMT
Author: ffang
Date: Fri Jul 10 02:10:13 2009
New Revision: 792781

URL: http://svn.apache.org/viewvc?rev=792781&view=rev
Log:
[SMXCOMP-585]cxf bc provider can't handle soap fault message correctly when there's whitespace/tab/return
in the fault details

Modified:
    servicemix/smx3/branches/servicemix-3.2/deployables/bindingcomponents/servicemix-cxf-bc/src/main/java/org/apache/servicemix/cxfbc/interceptors/JbiInWsdl1Interceptor.java

Modified: servicemix/smx3/branches/servicemix-3.2/deployables/bindingcomponents/servicemix-cxf-bc/src/main/java/org/apache/servicemix/cxfbc/interceptors/JbiInWsdl1Interceptor.java
URL: http://svn.apache.org/viewvc/servicemix/smx3/branches/servicemix-3.2/deployables/bindingcomponents/servicemix-cxf-bc/src/main/java/org/apache/servicemix/cxfbc/interceptors/JbiInWsdl1Interceptor.java?rev=792781&r1=792780&r2=792781&view=diff
==============================================================================
--- servicemix/smx3/branches/servicemix-3.2/deployables/bindingcomponents/servicemix-cxf-bc/src/main/java/org/apache/servicemix/cxfbc/interceptors/JbiInWsdl1Interceptor.java
(original)
+++ servicemix/smx3/branches/servicemix-3.2/deployables/bindingcomponents/servicemix-cxf-bc/src/main/java/org/apache/servicemix/cxfbc/interceptors/JbiInWsdl1Interceptor.java
Fri Jul 10 02:10:13 2009
@@ -237,8 +237,8 @@
             message.put("faultstring", nodeList.item(0).getFirstChild().getTextContent());
             nodeList = soapFault.getElementsByTagName("detail");
             if (nodeList != null && nodeList.getLength() > 0 
-                    && nodeList.item(0).getFirstChild() != null) {
-                jbiFaultDetail = doc.importNode(nodeList.item(0).getFirstChild(), true);
+                    && DomUtil.getFirstChildElement(nodeList.item(0)) != null) {
+                jbiFaultDetail = doc.importNode(DomUtil.getFirstChildElement(nodeList.item(0)),
true);
             } else {
                 message.put("hasdetail", false);
                 nodeList = soapFault.getElementsByTagName("faultstring");
@@ -255,8 +255,8 @@
             message.put("faultstring", nodeList.item(0).getFirstChild().getTextContent());
             nodeList = soapFault.getElementsByTagName("soap:Detail");
             if (nodeList != null && nodeList.getLength() > 0
-                    && nodeList.item(0).getFirstChild() != null) {
-                jbiFaultDetail = doc.importNode(nodeList.item(0).getFirstChild(), true);
+                    && DomUtil.getFirstChildElement(nodeList.item(0)) != null) {
+                jbiFaultDetail = doc.importNode(DomUtil.getFirstChildElement(nodeList.item(0)),
true);
             } else {
                 message.put("hasdetail", false);
                 nodeList = soapFault.getElementsByTagName("faultstring");



Mime
View raw message