cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r1393094 - /cxf/trunk/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/interceptor/Soap11FaultOutInterceptor.java
Date Tue, 02 Oct 2012 18:50:16 GMT
Author: dkulp
Date: Tue Oct  2 18:50:15 2012
New Revision: 1393094

URL: http://svn.apache.org/viewvc?rev=1393094&view=rev
Log:
[CXF-4535] Fix bug with soap:fault child elements output in wrong order
Patch from Gary Gregory applied

Modified:
    cxf/trunk/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/interceptor/Soap11FaultOutInterceptor.java

Modified: cxf/trunk/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/interceptor/Soap11FaultOutInterceptor.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/interceptor/Soap11FaultOutInterceptor.java?rev=1393094&r1=1393093&r2=1393094&view=diff
==============================================================================
--- cxf/trunk/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/interceptor/Soap11FaultOutInterceptor.java
(original)
+++ cxf/trunk/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/interceptor/Soap11FaultOutInterceptor.java
Tue Oct  2 18:50:15 2012
@@ -97,6 +97,12 @@ public class Soap11FaultOutInterceptor e
                 writer.writeEndElement();
                 prepareStackTrace(message, fault);
     
+                if (fault.getRole() != null) {
+                    writer.writeStartElement("faultactor");
+                    writer.writeCharacters(fault.getRole());
+                    writer.writeEndElement();
+                }
+    
                 if (fault.hasDetails()) {
                     Element detail = fault.getDetail();
                     writer.writeStartElement("detail");
@@ -111,12 +117,6 @@ public class Soap11FaultOutInterceptor e
                     writer.writeEndElement();
                 }
     
-                if (fault.getRole() != null) {
-                    writer.writeStartElement("faultactor");
-                    writer.writeCharacters(fault.getRole());
-                    writer.writeEndElement();
-                }
-    
                 // Fault
                 writer.writeEndElement();
             } catch (Exception xe) {



Mime
View raw message