Author: keith
Date: Mon Jul  7 11:02:50 2008
New Revision: 18916
URL: http://wso2.org/svn/browse/wso2?view=rev&revision=18916

Log:
Fix to make sure that the address returned when using the HTTPBinding and the 
soapBinding is simillar


Modified:
   
trunk/mashup/java/modules/core/src/org/wso2/mashup/transport/MashupServlet.java

Modified: 
trunk/mashup/java/modules/core/src/org/wso2/mashup/transport/MashupServlet.java
URL: 
http://wso2.org/svn/browse/wso2/trunk/mashup/java/modules/core/src/org/wso2/mashup/transport/MashupServlet.java?rev=18916&r1=18915&r2=18916&view=diff
==============================================================================
--- 
trunk/mashup/java/modules/core/src/org/wso2/mashup/transport/MashupServlet.java 
    (original)
+++ 
trunk/mashup/java/modules/core/src/org/wso2/mashup/transport/MashupServlet.java 
    Mon Jul  7 11:02:50 2008
@@ -110,14 +110,15 @@
             String serviceName = MashupUtils.getServiceName(requestURI, 
contextPath);
             AxisService axisService = 
serverManager.configContext.getAxisConfiguration()
                     .getServiceForActivation(serviceName);
+            EndpointReference to = 
mashupRestRequestProcessor.getMessageContext().getTo();
+            String requestURL = request.getRequestURL().toString();
             if (axisService != null && MashupConstants.MASHUP_JS_SERVICE
                         
.equals(axisService.getParameterValue(ServerConstants.SERVICE_TYPE))) {
-                EndpointReference to = 
mashupRestRequestProcessor.getMessageContext().getTo();
-                String address = to.getAddress();
-                to.setAddress(address.replaceFirst(
+                requestURL = requestURL.replaceFirst(
                         
serviceName.replaceFirst(MashupConstants.SEPARATOR_CHAR, "/"),
-                        serviceName));
+                        serviceName);
             }
+            to.setAddress(requestURL);
             if (url) {
                 mashupRestRequestProcessor.processURLRequest();
             } else {

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

Reply via email to