You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by di...@apache.org on 2004/10/05 16:25:08 UTC

cvs commit: ws-axis/java/src/org/apache/axis/transport/http AxisServlet.java

dims        2004/10/05 07:25:08

  Modified:    java/src/org/apache/axis/transport/http AxisServlet.java
  Log:
  Fix for AXIS-1385 - Defined endpointUrl will not be used inlist of deployed services
  from Jayachandra Sekhara Rao Sunkara <ja...@gmail.com>
  
  Revision  Changes    Path
  1.179     +5 -1      ws-axis/java/src/org/apache/axis/transport/http/AxisServlet.java
  
  Index: AxisServlet.java
  ===================================================================
  RCS file: /home/cvs/ws-axis/java/src/org/apache/axis/transport/http/AxisServlet.java,v
  retrieving revision 1.178
  retrieving revision 1.179
  diff -u -r1.178 -r1.179
  --- AxisServlet.java	1 Apr 2004 20:48:43 -0000	1.178
  +++ AxisServlet.java	5 Oct 2004 14:25:08 -0000	1.179
  @@ -452,7 +452,9 @@
                   throw configException;
               }
           }
  -        String baseURL = getWebappBase(request)+"/services/";
  +        // baseURL may change if <endpointURL> tag is used for 
  +        // custom deployment at a different location
  +        String defaultBaseURL = getWebappBase(request)+"/services/"; 
           writer.println("<ul>");
           while (i.hasNext()) {
               ServiceDesc sd = (ServiceDesc)i.next();
  @@ -461,6 +463,8 @@
               String name = sd.getName();
               sb.append(name);
               sb.append(" <a href=\"");
  +            String endpointURL = sd.getEndpointURL(); 
  +            String baseURL = (endpointURL==null)? defaultBaseURL : endpointURL;
               sb.append(baseURL);
               sb.append(name);
               sb.append("?wsdl\"><i>(wsdl)</i></a></li>");