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 bu...@apache.org on 2003/07/31 22:41:42 UTC
DO NOT REPLY [Bug 22033] New: -
Harcoded URL
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22033>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22033
Harcoded URL
Summary: Harcoded URL
Product: Axis
Version: 1.1
Platform: Other
OS/Version: Linux
Status: NEW
Severity: Enhancement
Priority: Other
Component: Basic Architecture
AssignedTo: axis-dev@ws.apache.org
ReportedBy: jlsanctus@yahoo.co.uk
CC: jlsanctus@yahoo.co.uk,jmsantos@mail.pt
Hi,
We've found that if we change the default content of url-pattern element in
web.xml from <url-pattern>/services/*</url-pattern> to, for instance,
<url-pattern>/webservices/*</url-pattern>, the page that lists the available
services/operations is badly generated. The link that should display the web
service WSDL is broken.
This is caused by harcoded 'services' string on method
reportAvailableServices() of class org.apache.axis.transport.http.AxisServlet,
as shown below:
String baseURL = getWebappBase(request)+"/services/";
It is very likely that string "/services/" should be replaced by a dynamically
retrieved string, according to either request URL or web.xml url-pattern.
We humbly suggest that Axis hardcoded HTML pages could be built by JSP (with
the aid of a simple JavaBean and forwarding [AxisServlet -> list.jsp]) or
similar technology, in order for people to easily change the HMTL layouts with
no need for recompliling Axis sources (one would simply edit JSPs).
BTW, we are Santos (jlsanctus@yahoo.co.uk) and Jo�o Santos
(jmsantos@mail.pt) and if you feel that this information is helpful and we
deserve to be added to the contributors list ( :-) ), PLEASE feel free to do
so.
We look forward for your feedback.
Best regards,
<contributors>
<contributor name="Santos" />
<contributor name="Jo�o Santos" />
</contributors>