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 ji...@apache.org on 2004/06/16 18:25:10 UTC

[jira] Created: (AXIS-1397) Services overview page has incorrect link to service-wsdl if using a mapping other then /services

Message:

  A new issue has been created in JIRA.

---------------------------------------------------------------------
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: Wed, 16 Jun 2004 9:24 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


[jira] Commented: (AXIS-1397) Services overview page has incorrect link to service-wsdl if using a mapping other then /services

Posted by "Tom Jordahl (JIRA)" <ax...@ws.apache.org>.
     [ http://nagoya.apache.org/jira/browse/AXIS-1397?page=comments#action_56172 ]
     
Tom Jordahl commented on AXIS-1397:
-----------------------------------

Looks mostly harmless to me.

By the way, with the SimpleAxisServer, you get the services page when you give almost any URI and it doesn't redirect you to /axis, so the WSDL links are wrong.  It does correctly redirect when you go to the root ("/").


> 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


[jira] Commented: (AXIS-1397) Services overview page has incorrect link to service-wsdl if using a mapping other then /services

Posted by ji...@apache.org.
The following comment has been added to this issue:

     Author: AJ Banck
    Created: Wed, 16 Jun 2004 9:56 AM
       Body:
Please forget last comment, it is incorrect. should be a property?
---------------------------------------------------------------------
View this comment:
  http://issues.apache.org/jira/browse/AXIS-1397?page=comments#action_36199

---------------------------------------------------------------------
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: Wed, 16 Jun 2004 9:56 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


[jira] Commented: (AXIS-1397) Services overview page has incorrect link to service-wsdl if using a mapping other then /services

Posted by "Archit Shah (JIRA)" <ax...@ws.apache.org>.
     [ 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


[jira] Commented: (AXIS-1397) Services overview page has incorrect link to service-wsdl if using a mapping other then /services

Posted by ji...@apache.org.
The following comment has been added to this issue:

     Author: AJ Banck
    Created: Thu, 17 Jun 2004 10:15 AM
       Body:
I don't think this does has any impact (or should have) on SimpleAxisServer.
I tried this propery and the existing axis.disableServiceList, both do not seem to change SimpleAxisServer behavoir.
As (AFAIK) you can't change the servlet-mapping on this server, no need to change it.

Please correct me if I am wrong, I never used SimpleAxisServer before
---------------------------------------------------------------------
View this comment:
  http://issues.apache.org/jira/browse/AXIS-1397?page=comments#action_36220

---------------------------------------------------------------------
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 10:15 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


[jira] Updated: (AXIS-1397) Services overview page has incorrect link to service-wsdl if using a mapping other then /services

Posted by "AJ Banck (JIRA)" <ax...@ws.apache.org>.
     [ http://nagoya.apache.org/jira/browse/AXIS-1397?page=history ]

AJ Banck updated AXIS-1397:
---------------------------

    Attachment: patch-ServicesPath2.txt

Update of patch 1. patch re-created from latest CVS version.

> 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


[jira] Commented: (AXIS-1397) Services overview page has incorrect link to service-wsdl if using a mapping other then /services

Posted by "Davanum Srinivas (JIRA)" <ax...@ws.apache.org>.
     [ http://nagoya.apache.org/jira/browse/AXIS-1397?page=comments#action_56100 ]
     
Davanum Srinivas commented on AXIS-1397:
----------------------------------------

tom, glen, 
any comment on this patch?

thanks,
dims

> 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


[jira] Commented: (AXIS-1397) Services overview page has incorrect link to service-wsdl if using a mapping other then /services

Posted by ji...@apache.org.
The following comment has been added to this issue:

     Author: AJ Banck
    Created: Thu, 17 Jun 2004 9:09 AM
       Body:
Parsing web.xml seems a lot of overhead, and is not guaranteed to work as there might be more then one mapping.

It would be very easy (I just tried it and it seems to work) to replace the "/services/" with a property in the wsdd, defaulting to "/services/"

If you think this is ok, I can create a patch.
Suggestions for the parameter name? I now have:
axis.servicesPath

  <parameter name="axis.servicesPath" value="/api4/services/"/>

---------------------------------------------------------------------
View this comment:
  http://issues.apache.org/jira/browse/AXIS-1397?page=comments#action_36215

---------------------------------------------------------------------
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 9:09 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


[jira] Commented: (AXIS-1397) Services overview page has incorrect link to service-wsdl if using a mapping other then /services

Posted by ji...@apache.org.
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


[jira] Updated: (AXIS-1397) Services overview page has incorrect link to service-wsdl if using a mapping other then /services

Posted by ji...@apache.org.
The following issue has been updated:

    Updater: AJ Banck (mailto:ajbanck@informatica.com)
       Date: Thu, 17 Jun 2004 10:39 AM
    Comment:
Simple patch to replace hardcoded "/services/" with wsdd parameter axis.servicesPath.
    Changes:
             Attachment changed to patch-servicespath.txt
    ---------------------------------------------------------------------
For a full history of the issue, see:

  http://issues.apache.org/jira/browse/AXIS-1397?page=history

---------------------------------------------------------------------
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 10:39 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


[jira] Resolved: (AXIS-1397) Services overview page has incorrect link to service-wsdl if using a mapping other then /services

Posted by "Dominik Kacprzak (JIRA)" <ax...@ws.apache.org>.
     [ http://nagoya.apache.org/jira/browse/AXIS-1397?page=history ]
     
Dominik Kacprzak resolved AXIS-1397:
------------------------------------

     Resolution: Fixed
    Fix Version: current (nightly)

AJ, I applied your patch.  Since it's been a while, I had to do it manually. Please double check the changes I made.

I took a look at other locations that Archit pointed out and I believe they are pretty harmless:
- SimpleAxisWorker - it's used only for unit testing and as Tom pointed out, there are some other issues.
- AdminClient - defines "/services" in a default URL which can be easily changed from a command line
- JettyAxisServer - our support for Jetty is pretty rudimentary and we can address it when/if it becomes an issue.

- Dominik

> 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
>      Fix For: current (nightly)
>  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


[jira] Commented: (AXIS-1397) Services overview page has incorrect link to service-wsdl if using a mapping other then /services

Posted by ji...@apache.org.
The following comment has been added to this issue:

     Author: Davanum Srinivas
    Created: Thu, 17 Jun 2004 9:13 AM
       Body:
+1. don't forget SimpleAxisServer...

-- dims
---------------------------------------------------------------------
View this comment:
  http://issues.apache.org/jira/browse/AXIS-1397?page=comments#action_36216

---------------------------------------------------------------------
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 9:13 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


[jira] Commented: (AXIS-1397) Services overview page has incorrect link to service-wsdl if using a mapping other then /services

Posted by ji...@apache.org.
The following comment has been added to this issue:

     Author: AJ Banck
    Created: Wed, 16 Jun 2004 9:43 AM
       Body:
I could update AxisServlet and replace:
        String baseURL = getWebappBase(request)+"/services/";

with:
        String baseURL = getWebappBase(request)+ request.getServletPath() +"/";

Might be a bit weird as this is the only location getWebappBase is used. Alternative is adding a methods to AxisServletBase using getRequestURI but that seems more overhead then needed.
---------------------------------------------------------------------
View this comment:
  http://issues.apache.org/jira/browse/AXIS-1397?page=comments#action_36198

---------------------------------------------------------------------
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: Wed, 16 Jun 2004 9:43 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