airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lah...@apache.org
Subject svn commit: r1196343 - /incubator/airavata/trunk/modules/gfac-axis2/src/main/java/org/apache/airavata/services/gfac/axis2/reciever/GFacMessageReciever.java
Date Tue, 01 Nov 2011 22:45:47 GMT
Author: lahiru
Date: Tue Nov  1 22:45:46 2011
New Revision: 1196343

URL: http://svn.apache.org/viewvc?rev=1196343&view=rev
Log:
fixing more issues with gfac service invocation.

Modified:
    incubator/airavata/trunk/modules/gfac-axis2/src/main/java/org/apache/airavata/services/gfac/axis2/reciever/GFacMessageReciever.java

Modified: incubator/airavata/trunk/modules/gfac-axis2/src/main/java/org/apache/airavata/services/gfac/axis2/reciever/GFacMessageReciever.java
URL: http://svn.apache.org/viewvc/incubator/airavata/trunk/modules/gfac-axis2/src/main/java/org/apache/airavata/services/gfac/axis2/reciever/GFacMessageReciever.java?rev=1196343&r1=1196342&r2=1196343&view=diff
==============================================================================
--- incubator/airavata/trunk/modules/gfac-axis2/src/main/java/org/apache/airavata/services/gfac/axis2/reciever/GFacMessageReciever.java
(original)
+++ incubator/airavata/trunk/modules/gfac-axis2/src/main/java/org/apache/airavata/services/gfac/axis2/reciever/GFacMessageReciever.java
Tue Nov  1 22:45:46 2011
@@ -197,18 +197,25 @@ public class GFacMessageReciever impleme
 //                inputParam.add(parameter.getParameterName(),ActualParameter.fromXML(xmlContent));
 
                 ActualParameter actualParameter = new ActualParameter();
+                OMElement innerelement = null;
                 if("String".equals(parameter.getParameterType().getName())){
-                                 ((StringParameterType)actualParameter.getType()).setValue(element.getText());
+                    innerelement = (OMElement)element.getChildrenWithLocalName("value").next();
+                    ((StringParameterType)actualParameter.getType()).setValue(innerelement.getText());
                 }else if("Double".equals(parameter.getParameterType().getName())){
-                    ((DoubleParameterType)actualParameter.getType()).setValue(new Double(element.getText()));
+                    innerelement = (OMElement)element.getChildrenWithLocalName("value").next();
+                    ((DoubleParameterType)actualParameter.getType()).setValue(new Double(innerelement.getText()));
                 }else if("Integer".equals(parameter.getParameterType().getName())){
-                    ((IntegerParameterType)actualParameter.getType()).setValue(new Integer(element.getText()));
+                    innerelement = (OMElement)element.getChildrenWithLocalName("value").next();
+                    ((IntegerParameterType)actualParameter.getType()).setValue(new Integer(innerelement.getText()));
                 }else if("Float".equals(parameter.getParameterType().getName())){
-                    ((FloatParameterType)actualParameter.getType()).setValue(new Float(element.getText()));
+                    innerelement = (OMElement)element.getChildrenWithLocalName("value").next();
+                    ((FloatParameterType)actualParameter.getType()).setValue(new Float(innerelement.getText()));
                 }else if("Boolean".equals(parameter.getParameterType().getName())){
-                    ((BooleanParameterType)actualParameter.getType()).setValue(new Boolean(element.getText()));
+                    innerelement = (OMElement)element.getChildrenWithLocalName("value").next();
+                    ((BooleanParameterType)actualParameter.getType()).setValue(new Boolean(innerelement.getText()));
                 }else if("File".equals(parameter.getParameterType().getName())){
-                    ((FileParameterType)actualParameter.getType()).setValue(element.getText());
+                    innerelement = (OMElement)element.getChildrenWithLocalName("value").next();
+                    ((FileParameterType)actualParameter.getType()).setValue(innerelement.getText());
                 }else if("StringArray".equals(parameter.getParameterType().getName())){
                     //todo ((StringArrayType)actualParameter.getType()).setValueArray().setValue(new
Double(element.getText()));
                 }else if("DoubleArray".equals(parameter.getParameterType().getName())){



Mime
View raw message