airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lah...@apache.org
Subject svn commit: r1180170 - /incubator/airavata/trunk/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/component/ws/WSComponentFactory.java
Date Fri, 07 Oct 2011 19:18:08 GMT
Author: lahiru
Date: Fri Oct  7 19:18:07 2011
New Revision: 1180170

URL: http://svn.apache.org/viewvc?rev=1180170&view=rev
Log:
fixing https://issues.apache.org/jira/browse/AIRAVATA-132.

Modified:
    incubator/airavata/trunk/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/component/ws/WSComponentFactory.java

Modified: incubator/airavata/trunk/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/component/ws/WSComponentFactory.java
URL: http://svn.apache.org/viewvc/incubator/airavata/trunk/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/component/ws/WSComponentFactory.java?rev=1180170&r1=1180169&r2=1180170&view=diff
==============================================================================
--- incubator/airavata/trunk/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/component/ws/WSComponentFactory.java
(original)
+++ incubator/airavata/trunk/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/component/ws/WSComponentFactory.java
Fri Oct  7 19:18:07 2011
@@ -73,20 +73,19 @@ public class WSComponentFactory {
      * @throws ComponentException
      */
     public static List<WSComponent> createComponents(WsdlDefinitions wsdl) throws ComponentException
{
-        try{
-        QName portTypeQName = WSDLUtil.getFirstPortTypeQName(wsdl);
-        WsdlPortType portType = wsdl.getPortType(portTypeQName.getLocalPart());
         List<WSComponent> components = new ArrayList<WSComponent>();
+        try{
+            QName portTypeQName = WSDLUtil.getFirstPortTypeQName(wsdl);
+            WsdlPortType portType = wsdl.getPortType(portTypeQName.getLocalPart());
         for (WsdlPortTypeOperation operation : portType.operations()) {
             String operationName = operation.getOperationName();
             WSComponent component = createComponent(wsdl, portTypeQName, operationName);
             components.add(component);
-            return components;
         }
         }catch (Exception e){
             throw new ComponentException(ErrorMessages.COMPONENT_FORMAT_ERROR, e);
         }
-        return null;
+        return components;
     }
 
     /**



Mime
View raw message