axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Archit Shah (JIRA)" <axis-...@ws.apache.org>
Subject [jira] Commented: (AXIS-1397) Services overview page has incorrect link to service-wsdl if using a mapping other then /services
Date Thu, 02 Dec 2004 15:28:23 GMT
     [ http://nagoya.apache.org/jira/browse/AXIS-1397?page=comments#action_56105 ]
     
Archit Shah commented on AXIS-1397:
-----------------------------------

It looks like SimpleAxisWorker (lines 266 and 352) may need to be updated as well. I searched
of the source code for "services" and filtered it down to hits relevant to this issue. Other
than SimpleAxisWorker, everything is already addressed in the patch or is a default value.

SimpleAxisWorker:

src/org/apache/axis/transport/http/SimpleAxisWorker.java:266: if (filePart.startsWith("axis/services/"))
{

src/org/apache/axis/transport/http/SimpleAxisWorker.java:352: sb.append(" <a href=\"services/");

defaults:

src/org/apache/axis/client/AdminClient.java:281: opts.setDefaultURL("http://localhost:8080/axis/services/AdminService");

src/org/apache/axis/transport/http/AxisServlet.java:67: * @web.servlet-mapping url-pattern="/services/*"

src/org/apache/axis/transport/http/JettyAxisServer.java:64: servlets.addServlet("AxisServlet",
"/services/*",

addressed in the patch:

src/org/apache/axis/transport/http/AxisServlet.java:469: String defaultBaseURL = getWebappBase(request)+"/services/";

> Services overview page has incorrect link to service-wsdl if using a mapping other then
/services
> -------------------------------------------------------------------------------------------------
>
>          Key: AXIS-1397
>          URL: http://nagoya.apache.org/jira/browse/AXIS-1397
>      Project: Axis
>         Type: Bug
>   Components: WSDL processing
>     Versions: current (nightly)
>     Reporter: AJ Banck
>  Attachments: patch-ServicesPath2.txt, patch-servicespath.txt
>
> The URL location to the services is hardcoded to '/services' in the generated page of
available services.
> AxisServlet.reportAvailableServices[455] has:
>         String baseURL = getWebappBase(request)+"/services/";
> This path is defined in the mapping of web.xml So if the web.xml has a mapping on another
url, the services overview doesn't work.
> For example, we have different URL's for different versions of the application's API.
This maps the services like:
>     <servlet-mapping>
>         <servlet-name>AxisServlet</servlet-name>
>         <url-pattern>/api4/services/*</url-pattern>
>     </servlet-mapping>
> With this the {baseurl}/api4/services shows the overview of services, but clicking on
one of the WSDL  links  (linking to {baseurl}/services/myservice?wsdl}throws a 404.
> The wsdl is available at {baseurl}/api4/services/myservice?wsdl
> Not sure what the best solution is. Can AxisServlet find out what the mapping used is,
or should it be a variable?

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


Mime
View raw message