axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From thomas.che...@ascentialsoftware.com
Subject RE: Changing the target URL for an Axis web service (Tomcat)
Date Tue, 21 May 2002 17:42:43 GMT
look at the javadoc of the process method of the AdminClient class in the
API doc of Axis.
-----Original Message-----
From: Jim Dibble [mailto:jdibble@amberpoint.com]
Sent: Tuesday, May 21, 2002 12:26 PM
To: axis-user@xml.apache.org
Subject: RE: Changing the target URL for an Axis web service (Tomcat)


Thanks.  Is there documentation for the options available on the AdminClient
(and other utilities)?  When I enter:
java org.axis.apache.client.AdminClient -help
I only get the following:
            - Usage:  AdminClient xml-files | list
 
-----Original Message-----
From: thomas.cherel@ascentialsoftware.com
[mailto:thomas.cherel@ascentialsoftware.com] 
Sent: Monday, May 20, 2002 7:06 PM
To: axis-user@xml.apache.org
Subject: RE: Changing the target URL for an Axis web service (Tomcat)
 
The AdminClient accepts multiple option. One of them is -l where you can
specify the URL of the admin servlet.
In the web.xml, if you changed the URL pattern for /services only, then the
other URLs should be still usable, except that the URL base will always be
tutorial (name of the war).
Try -l /tutorial/services/AdminService as AdminClient option. The risk is in
which order the URL patterns from the web.xml are processed. ("*" will match
everything).
By playing with the -l option and the URL patterns in web.xml you should be
able to make it work.
 
Thomas
-----Original Message-----
From: Jim Dibble [mailto:jdibble@amberpoint.com] 
Sent: Monday, May 20, 2002 9:01 PM
To: axis-user@xml.apache.org
Subject: Changing the target URL for an Axis web service (Tomcat)
I'd like to change the target URL for my Axis web service, which I am
deploying to Tomcat.  Namely, I'd like to change the name "axis" to
"tutorial", and remove the requirement for the word "services" in the path.
So, rather than using this URL:
http://localhost:8080/axis/services/OrderProcessingService?wsdl
<http://localhost:8080/axis/services/OrderProcessingService?wsdl> 
the user will use this URL:
http://localhost:8080/tutorial/OrderProcessingService?wsdl
<http://localhost:8080/tutorial/OrderProcessingService?wsdl> 
 
What is the recommended way to do this?
 
Here's what I tried so far:
1.	I renamed the axis.war to tutorial.war. 

2.	I changed the URL pattern in the web.xml file from "/services/*" to
simply "*" 
 
This almost did the trick, but now I can't use the AdminClient to register
web services (it seems to be looking for the URL
".../axis/services/AdminService").  Any advice?

Mime
View raw message