cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ff...@apache.org
Subject svn commit: r1398207 - /cxf/trunk/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/interceptor/Soap12FaultOutInterceptor.java
Date Mon, 15 Oct 2012 08:01:45 GMT
Author: ffang
Date: Mon Oct 15 08:01:45 2012
New Revision: 1398207

URL: http://svn.apache.org/viewvc?rev=1398207&view=rev
Log:
[CXF-4562]Soap Fault fields precedence is incorrect for soap12

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

Modified: cxf/trunk/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/interceptor/Soap12FaultOutInterceptor.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/interceptor/Soap12FaultOutInterceptor.java?rev=1398207&r1=1398206&r2=1398207&view=diff
==============================================================================
--- cxf/trunk/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/interceptor/Soap12FaultOutInterceptor.java
(original)
+++ cxf/trunk/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/interceptor/Soap12FaultOutInterceptor.java
Mon Oct 15 08:01:45 2012
@@ -113,6 +113,12 @@ public class Soap12FaultOutInterceptor e
                 writer.writeEndElement();
                 writer.writeEndElement();
 
+                if (fault.getRole() != null) {
+                    writer.writeStartElement(defaultPrefix, "Role", ns);
+                    writer.writeCharacters(fault.getRole());
+                    writer.writeEndElement();
+                }
+
                 prepareStackTrace(message, fault);
                 
                 if (fault.hasDetails()) {
@@ -129,12 +135,6 @@ public class Soap12FaultOutInterceptor e
                     writer.writeEndElement();
                 }
 
-                if (fault.getRole() != null) {
-                    writer.writeStartElement(defaultPrefix, "Role", ns);
-                    writer.writeCharacters(fault.getRole());
-                    writer.writeEndElement();
-                }
-
                 // Fault
                 writer.writeEndElement();
             } catch (Exception xe) {



Mime
View raw message