cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r591076 - /incubator/cxf/trunk/rt/core/src/main/java/org/apache/cxf/interceptor/ClientFaultConverter.java
Date Thu, 01 Nov 2007 16:42:43 GMT
Author: dkulp
Date: Thu Nov  1 09:42:43 2007
New Revision: 591076

URL: http://svn.apache.org/viewvc?rev=591076&view=rev
Log:
[CXF-1123] Support some invalid WSDL's that are making faults types (like wsdls generated
from Aegis in 2.0.2.)  :-(

Modified:
    incubator/cxf/trunk/rt/core/src/main/java/org/apache/cxf/interceptor/ClientFaultConverter.java

Modified: incubator/cxf/trunk/rt/core/src/main/java/org/apache/cxf/interceptor/ClientFaultConverter.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/rt/core/src/main/java/org/apache/cxf/interceptor/ClientFaultConverter.java?rev=591076&r1=591075&r2=591076&view=diff
==============================================================================
--- incubator/cxf/trunk/rt/core/src/main/java/org/apache/cxf/interceptor/ClientFaultConverter.java
(original)
+++ incubator/cxf/trunk/rt/core/src/main/java/org/apache/cxf/interceptor/ClientFaultConverter.java
Thu Nov  1 09:42:43 2007
@@ -99,6 +99,21 @@
             }
         }
         if (faultWanted == null) {
+            //did not find it using the proper qualified names, we'll try again with just
the localpart
+            for (FaultInfo faultInfo : boi.getOperationInfo().getFaults()) {
+                for (MessagePartInfo mpi : faultInfo.getMessageParts()) {
+                    if (qname.getLocalPart().equals(mpi.getConcreteName().getLocalPart()))
{
+                        faultWanted = faultInfo;
+                        part = mpi;
+                        break;
+                    }
+                }
+                if (faultWanted != null) {
+                    break;
+                }
+            }
+        }
+        if (faultWanted == null) {
             return;
         }
         Service s = msg.getExchange().get(Service.class);



Mime
View raw message