airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lah...@apache.org
Subject svn commit: r1228553 - /incubator/airavata/trunk/modules/gfac-axis2/src/main/java/org/apache/airavata/services/gfac/axis2/reciever/GFacMessageReciever.java
Date Sat, 07 Jan 2012 02:15:54 GMT
Author: lahiru
Date: Sat Jan  7 02:15:54 2012
New Revision: 1228553

URL: http://svn.apache.org/viewvc?rev=1228553&view=rev
Log:
fixing issues when try to invoke GFac service in ranger.

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=1228553&r1=1228552&r2=1228553&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
Sat Jan  7 02:15:54 2012
@@ -119,7 +119,7 @@ public class GFacMessageReciever impleme
             try {
                 log.debug("invoking Invoke operation");
                 processInvokeOperation(axisRequestMsgCtx);
-                log.info(axisRequestMsgCtx.getEnvelope().getBody().getFirstElement().toStringWithConsume());
+                log.info(axisRequestMsgCtx.getEnvelope().getBody().getFirstElement().toString());
                 log.info("Invoke operation invoked !!");
             } catch (Exception e) {
                 throw new AxisFault("Error Invoking the service", e);
@@ -148,7 +148,6 @@ public class GFacMessageReciever impleme
              * <input_param_name2>value</input_param_name2> <input_param_name3>value</input_param_name3>
</invoke>
              */
             final OMElement invoke = messageContext.getEnvelope().getBody().getFirstElement();
-
             /*
              * We assume that output likes <invokeResponse> <output_param_name1>value</output_param_name1>
              * <output_param_name2>value</output_param_name2> <output_param_name3>value</output_param_name3>
@@ -197,9 +196,9 @@ public class GFacMessageReciever impleme
             SecurityContextDocument.SecurityContext.GridMyproxyRepository gridMyproxyRepository
= parse.getSecurityContext().getGridMyproxyRepository();
             if (gridMyproxyRepository==null){
             	gssContext.setMyproxyPasswd((String)messageContext.getConfigurationContext().getProperty(MYPROXY_PASS));
-                gssContext.setMyproxyUserName((String)messageContext.getConfigurationContext().getProperty(MYPROXY_USER));
-                gssContext.setMyproxyLifetime(Integer.parseInt((String)messageContext.getConfigurationContext().getProperty(MYPROXY_LIFE)));
-                gssContext.setMyproxyServer((String)messageContext.getConfigurationContext().getProperty(MYPROXY_SERVER));

+                gssContext.setMyproxyUserName((String) messageContext.getConfigurationContext().getProperty(MYPROXY_USER));
+                gssContext.setMyproxyLifetime(Integer.parseInt((String) messageContext.getConfigurationContext().getProperty(MYPROXY_LIFE)));
+                gssContext.setMyproxyServer((String)messageContext.getConfigurationContext().getProperty(MYPROXY_SERVER));
             }else{
 	            gssContext.setMyproxyPasswd(gridMyproxyRepository.getPassword());
 	            gssContext.setMyproxyUserName(gridMyproxyRepository.getUsername());



Mime
View raw message