axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j...@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, 17 Jun 2004 08:52:10 GMT
The following comment has been added to this issue:

     Author: Steve Loughran
    Created: Thu, 17 Jun 2004 1:50 AM
       Body:
This problem does irritate me, but there is no easy answer.

1. there is no introspection API for a servlet to find out the mappings.

2. Working off the servlet request is trouble, as when you get .JWS pages they route through
the same servlet, but their base is different.

Two options remain

(a) we look through web.xml ourselves and work out the details. 

(b) there is somewhere in server.wsdd that sets up our default mapping. 

(b) is easier, (c) niceer, but hard to justify the effort (or testing).
---------------------------------------------------------------------
View this comment:
  http://issues.apache.org/jira/browse/AXIS-1397?page=comments#action_36204

---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/AXIS-1397

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: AXIS-1397
    Summary: Services overview page has incorrect link to service-wsdl if using a mapping
other then /services
       Type: Bug

     Status: Unassigned
   Priority: Major

    Project: Axis
 Components: 
             WSDL processing
   Versions:
             current (nightly)

   Assignee: 
   Reporter: AJ Banck

    Created: Wed, 16 Jun 2004 9:24 AM
    Updated: Thu, 17 Jun 2004 1:50 AM

Description:
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?


---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://issues.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