[jboss-svn-commits] JBL Code SVN: r17347 - labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/services/soapui-client/src/main/java/org/jboss/soa/esb/services/soapui.

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Thu Dec 20 15:43:54 EST 2007


Author: tcunning
Date: 2007-12-20 15:43:54 -0500 (Thu, 20 Dec 2007)
New Revision: 17347

Modified:
   labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/services/soapui-client/src/main/java/org/jboss/soa/esb/services/soapui/SoapUIClientService.java
Log:
bug:JBESB-1407
If the operation is not found within the WSDL, then refresh the WSDL.


Modified: labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/services/soapui-client/src/main/java/org/jboss/soa/esb/services/soapui/SoapUIClientService.java
===================================================================
--- labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/services/soapui-client/src/main/java/org/jboss/soa/esb/services/soapui/SoapUIClientService.java	2007-12-20 19:32:09 UTC (rev 17346)
+++ labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/services/soapui-client/src/main/java/org/jboss/soa/esb/services/soapui/SoapUIClientService.java	2007-12-20 20:43:54 UTC (rev 17347)
@@ -145,6 +145,19 @@
                 return operationInst;
             }
         }
+        
+        // Try clearing WSDL cache, WSDL may have updated 
+        wsdls.remove(wsdl);
+        wsdlInterfaces = getWsdlInterfaces(wsdl, httpClientProps);
+
+        for (WsdlInterface wsdlInterface : wsdlInterfaces) {
+            Operation operationInst = wsdlInterface.getOperationByName(operation);
+
+            if (operationInst != null) {
+                return operationInst;
+            }
+        }
+        
         throw new UnsupportedOperationException("Operation '" + operation + "' not supported by WSDL '" + wsdl + "'.");
     }
 




More information about the jboss-svn-commits mailing list