Author: keith
Date: Tue Mar 25 00:54:04 2008
New Revision: 15063

Log:

fixing the servicename in stubs for dataservices



Modified:
   
trunk/mashup/java/modules/core/src/org/wso2/mashup/requestprocessor/Utils.java

Modified: 
trunk/mashup/java/modules/core/src/org/wso2/mashup/requestprocessor/Utils.java
==============================================================================
--- 
trunk/mashup/java/modules/core/src/org/wso2/mashup/requestprocessor/Utils.java  
    (original)
+++ 
trunk/mashup/java/modules/core/src/org/wso2/mashup/requestprocessor/Utils.java  
    Tue Mar 25 00:54:04 2008
@@ -15,13 +15,13 @@
  */
 package org.wso2.mashup.requestprocessor;
 
+import org.apache.axiom.om.OMElement;
 import org.apache.axis2.AxisFault;
 import org.apache.axis2.description.AxisService;
 import org.apache.axis2.description.AxisService2WSDL20;
 import org.apache.axis2.util.XSLTTemplateProcessor;
-import org.apache.axiom.om.OMElement;
 import org.wso2.mashup.MashupConstants;
-import org.wso2.wsas.ServerConstants;
+import org.wso2.mashup.utils.MashupUtils;
 
 import javax.servlet.http.HttpServletResponse;
 import javax.xml.transform.Result;
@@ -47,9 +47,8 @@
         InputStream sigStream = 
Thread.currentThread().getContextClassLoader().getResourceAsStream(
                 "wsdl2sig.xslt");
         ByteArrayOutputStream wsdlOutStream = new ByteArrayOutputStream();
-        if (MashupConstants.MASHUP_JS_SERVICE
-                
.equals(axisService.getParameterValue(ServerConstants.SERVICE_TYPE))) {
-            String serviceName = axisService.getName();
+        String serviceName = axisService.getName();
+        if (MashupUtils.isMashupService(serviceName)) {            
             int index = serviceName.indexOf(MashupConstants.SEPARATOR_CHAR);
             AxisService2WSDL20 axisService2WSDL2 =
                     new AxisService2WSDL20(axisService, 
serviceName.substring(index + 1));

_______________________________________________
Mashup-dev mailing list
[email protected]
http://www.wso2.org/cgi-bin/mailman/listinfo/mashup-dev

Reply via email to