You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by la...@apache.org on 2011/10/07 21:18:08 UTC

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

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;
     }
 
     /**