This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread 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 Murach's Java Servlets and JSP this week in the Servlets 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
 
 
subject: To check if a Service is running in Java
 
Similar Threads
Trying to Develop Web Services Client.
javax.mail.MessagingException is thrown when sending mail
java. net. Connection Exception
Connection failure - web service
connect to "IP" timed out