This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Web Services and the fly likes To check if a Service is running in Java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "To check if a Service is running in Java " Watch "To check if a Service is running in Java " New topic
Author

To check if a Service is running in Java

Maya sekar
Ranch Hand

Joined: Sep 22, 2011
Posts: 70
Hi,


I am trying to check if a service is up and running through Java code. Problem is I can connect to the Service if I hit the URL directly from the browser but when I try to connect through my code, the connection gets timed out. So my code throws a "Service not active" message even though the service is in reality up and running.... Why does the connection get timed out when I try to connect through my code....

Any help is much appreciated... thank you
Prashant Saraf
Ranch Hand

Joined: Sep 25, 2006
Posts: 52

Can you clarify how you are hitting service with Java Code? if you are able to hit the service with browser then it should be access by Java Code.
Bosun Bello
Ranch Hand

Joined: Nov 06, 2000
Posts: 1510
Show the wsdl URL and show the code you are trying to use to access it in Java.


Bosun (SCJP, SCWCD)
So much trouble in the world -- Bob Marley
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: To check if a Service is running in Java