[jboss-svn-commits] JBL Code SVN: r24875 - labs/jbossesb/branches/JBESB_4_4_GA_CP/product/services/soap/src/main/java/org/jboss/soa/esb/actions/soap/wise.

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Thu Jan 22 09:02:05 EST 2009


Author: beve
Date: 2009-01-22 09:02:05 -0500 (Thu, 22 Jan 2009)
New Revision: 24875

Modified:
   labs/jbossesb/branches/JBESB_4_4_GA_CP/product/services/soap/src/main/java/org/jboss/soa/esb/actions/soap/wise/SOAPClient.java
Log:
Work for JBESB-2302  "Wise NullPointerException in SOAPClient"


Modified: labs/jbossesb/branches/JBESB_4_4_GA_CP/product/services/soap/src/main/java/org/jboss/soa/esb/actions/soap/wise/SOAPClient.java
===================================================================
--- labs/jbossesb/branches/JBESB_4_4_GA_CP/product/services/soap/src/main/java/org/jboss/soa/esb/actions/soap/wise/SOAPClient.java	2009-01-22 13:50:41 UTC (rev 24874)
+++ labs/jbossesb/branches/JBESB_4_4_GA_CP/product/services/soap/src/main/java/org/jboss/soa/esb/actions/soap/wise/SOAPClient.java	2009-01-22 14:02:05 UTC (rev 24875)
@@ -285,6 +285,11 @@
         }
 
         Map<String, WSMethod> wsmethodsMap = endpoint.getWSMethods();
+        WSMethod wsMethod = wsmethodsMap.get(soapAction);
+        if (wsMethod == null)
+        {
+            throw new ActionProcessingException("No WsMethod found for " + this.soapAction);
+        }
 
         InvocationResult result;
         try {
@@ -292,7 +297,7 @@
             if (this.smooksRequestMapperURL != null) {
                 mapper = new SmooksMapper(this.smooksRequestMapperURL, "smook/report/report.html");
             }
-            result = wsmethodsMap.get(this.soapAction).invoke(params, mapper);
+            result = wsMethod.invoke(params, mapper);
         } catch (WiseException e) {
             throw new ActionProcessingException("Could not call method" + this.soapAction, e);
         }




More information about the jboss-svn-commits mailing list