axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Archit Shah (JIRA)" <>
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
     [ ]
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.


src/org/apache/axis/transport/http/ if (filePart.startsWith("axis/services/"))

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


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

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

src/org/apache/axis/transport/http/ servlets.addServlet("AxisServlet",

addressed in the patch:

src/org/apache/axis/transport/http/ String defaultBaseURL = getWebappBase(request)+"/services/";

> Services overview page has incorrect link to service-wsdl if using a mapping other then
> -------------------------------------------------------------------------------------------------
>          Key: AXIS-1397
>          URL:
>      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:
If you want more information on JIRA, or have a bug to report see:

View raw message