incubator-airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lah...@apache.org
Subject svn commit: r1239190 - /incubator/airavata/trunk/modules/gfac-axis2/src/main/java/org/apache/airavata/services/gfac/axis2/reciever/GFacMessageReciever.java
Date Wed, 01 Feb 2012 16:14:11 GMT
Author: lahiru
Date: Wed Feb  1 16:14:11 2012
New Revision: 1239190

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

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=1239190&r1=1239189&r2=1239190&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
Wed Feb  1 16:14:11 2012
@@ -33,6 +33,7 @@ import javax.xml.stream.XMLStreamReader;
 import org.apache.airavata.common.registry.api.exception.RegistryException;
 import org.apache.airavata.commons.gfac.type.ActualParameter;
 import org.apache.airavata.commons.gfac.type.ServiceDescription;
+import org.apache.airavata.commons.gfac.wsdl.WSDLConstants;
 import org.apache.airavata.core.gfac.context.invocation.impl.DefaultExecutionContext;
 import org.apache.airavata.core.gfac.context.invocation.impl.DefaultInvocationContext;
 import org.apache.airavata.core.gfac.context.message.impl.ParameterContextImpl;
@@ -225,7 +226,7 @@ public class GFacMessageReciever impleme
             ServiceDescriptionType serviceDescriptionType = serviceDescription.getType();
 
             for (Parameter parameter : serviceDescriptionType.getInputParametersArray())
{
-                OMElement element = input.getFirstChildWithName(new QName(null,parameter.getParameterName()));
+                OMElement element = input.getFirstChildWithName(new QName(null,parameter.getParameterName().replaceAll(WSDLConstants.HYPHEN,
WSDLConstants.HYPHEN_REPLACEMENT)));
                 if (element == null) {
                     throw new Exception("Parameter is not found in the message");
                 }



Mime
View raw message