cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a.@apache.org
Subject svn commit: r1420304 - /cxf/branches/2.5.x-fixes/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/JaxWsClientProxy.java
Date Tue, 11 Dec 2012 17:56:13 GMT
Author: ay
Date: Tue Dec 11 17:56:12 2012
New Revision: 1420304

URL: http://svn.apache.org/viewvc?rev=1420304&view=rev
Log:
guard agaist inconsistent faults in JaxWsClientProxy

Modified:
    cxf/branches/2.5.x-fixes/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/JaxWsClientProxy.java

Modified: cxf/branches/2.5.x-fixes/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/JaxWsClientProxy.java
URL: http://svn.apache.org/viewvc/cxf/branches/2.5.x-fixes/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/JaxWsClientProxy.java?rev=1420304&r1=1420303&r2=1420304&view=diff
==============================================================================
--- cxf/branches/2.5.x-fixes/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/JaxWsClientProxy.java
(original)
+++ cxf/branches/2.5.x-fixes/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/JaxWsClientProxy.java
Tue Dec 11 17:56:12 2012
@@ -219,7 +219,9 @@ public class JaxWsClientProxy extends or
             if (role != null) {
                 soapFault.setFaultActor(role);
             }
-            if (((SoapFault)ex).getSubCode() != null) {
+            if (((SoapFault)ex).getSubCode() != null 
+                && !SOAPConstants.URI_NS_SOAP_1_1_ENVELOPE.equals(soapFault.getNamespaceURI()))
{
+                // set the subcode only if it is supported (e.g, 1.2)
                 soapFault.appendFaultSubcode(((SoapFault)ex).getSubCode());
             }
 



Mime
View raw message