aspose file tools*
The moose likes Web Services and the fly likes Disabling a service port in apache Axis Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Disabling a service port in apache Axis" Watch "Disabling a service port in apache Axis" New topic
Author

Disabling a service port in apache Axis

Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8919

Is it possible to disable a Service port using some API in Apache Axis?
Thanks


Groovy
Raj Chila
Ranch Hand

Joined: Mar 18, 2004
Posts: 128

Hi Pradeep,
I think the Axis is a Servlet Running in the Servlet container, like Tomcat, which by default runs on a port 8080.
if you are refering to the webservice port, which exists for each webservice hosted by Axis, then I think you can probably "close" a service by undeploying the service through the AdminClient, or may be eiditing the methods being exposed in the webservice.
because when you open the services page of the Axis, it parses the server.config file and lists all the services that are appearing in the config file.
I hope I understood your query.
Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8919

I want to disable a web service temporarily and bring it up after some time, all this using API? Is it possible?
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
You could try calling the AdminClient class from your code or add a enable/disable method into your web service and handle the problem on that level (say, keeping a "private static boolean isEnabled" in your web service implementation class), or having a separate Enabler web service which does the same but is only exposed to requests from the local network.


Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8919

say, keeping a "private static boolean isEnabled" in your web service implementation class),

Thanks! This is exactly my current implementation.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Disabling a service port in apache Axis